bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0492-staging-bcm2835_codec-Log-MMAL-flags-in-hex.patch
1 From dbc825d8cf0435da46532cfbc7199768abc32b4c Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 6 Aug 2021 13:43:48 +0100
4 Subject: [PATCH] staging/bcm2835_codec: Log MMAL flags in hex
5
6 The flags is a bitmask, so it's far easier to interpret as hex
7 data instead of decimal.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
10 ---
11 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
15 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 @@ -1071,7 +1071,7 @@ static void op_buffer_cb(struct vchiq_mm
17 struct vb2_v4l2_buffer *vb2;
18
19 v4l2_dbg(2, debug, &ctx->dev->v4l2_dev,
20 - "%s: status:%d, buf:%p, length:%lu, flags %u, pts %lld\n",
21 + "%s: status:%d, buf:%p, length:%lu, flags %04x, pts %lld\n",
22 __func__, status, mmal_buf, mmal_buf->length,
23 mmal_buf->mmal_flags, mmal_buf->pts);
24