staging/bcm2835-isp: Fix compiler warning
authorPhil Elwell <phil@raspberrypi.com>
Fri, 23 Apr 2021 15:16:49 +0000 (16:16 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:10 +0000 (11:33 +0000)
The result of dividing a u32 by a size_t is an unsigned int on arm32
and a long unsigned int on arm64. Use "%zu" (the size_t format) to
remove the build warning for 64-bit builds.

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/staging/vc04_services/bcm2835-isp/bcm2835-v4l2-isp.c

index 7d98096..f22f0e1 100644 (file)
@@ -1237,7 +1237,7 @@ static int bcm2835_isp_get_supported_fmts(struct bcm2835_isp_node *node)
        if (ret) {
                if (ret == MMAL_MSG_STATUS_ENOSPC) {
                        v4l2_err(&dev->v4l2_dev,
-                                "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
+                                "%s: port has more encodings than we provided space for. Some are dropped (%zu vs %u).\n",
                                 __func__, param_size / sizeof(u32),
                                 MAX_SUPPORTED_ENCODINGS);
                        num_encodings = MAX_SUPPORTED_ENCODINGS;