staging/bcm2835_codec: Log MMAL flags in hex
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Fri, 6 Aug 2021 12:43:48 +0000 (13:43 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 14 Sep 2021 16:03:59 +0000 (17:03 +0100)
The flags is a bitmask, so it's far easier to interpret as hex
data instead of decimal.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c

index d2b64a3..202830a 100644 (file)
@@ -1071,7 +1071,7 @@ static void op_buffer_cb(struct vchiq_mmal_instance *instance,
        struct vb2_v4l2_buffer *vb2;
 
        v4l2_dbg(2, debug, &ctx->dev->v4l2_dev,
-                "%s: status:%d, buf:%p, length:%lu, flags %u, pts %lld\n",
+                "%s: status:%d, buf:%p, length:%lu, flags %04x, pts %lld\n",
                 __func__, status, mmal_buf, mmal_buf->length,
                 mmal_buf->mmal_flags, mmal_buf->pts);