1 From c3da01fd97044bb1a48bd9146d15b374d4c1ce55 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 1 Feb 2021 18:55:37 +0000
4 Subject: [PATCH] staging/bcm2835-codec: Correct logging of size_t to
7 Fixes: "staging/bcm2835-codec: Log the number of excess supported formats"
8 Which used %u for printing a size_t, and 64bit builds then log a warning.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
15 --- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
16 +++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
17 @@ -2837,7 +2837,7 @@ static int bcm2835_codec_get_supported_f
19 if (ret == MMAL_MSG_STATUS_ENOSPC) {
20 v4l2_err(&dev->v4l2_dev,
21 - "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
22 + "%s: port has more encodings than we provided space for. Some are dropped (%zu vs %u).\n",
23 __func__, param_size / sizeof(u32),
24 MAX_SUPPORTED_ENCODINGS);
25 num_encodings = MAX_SUPPORTED_ENCODINGS;
26 @@ -2883,7 +2883,7 @@ static int bcm2835_codec_get_supported_f
28 if (ret == MMAL_MSG_STATUS_ENOSPC) {
29 v4l2_err(&dev->v4l2_dev,
30 - "%s: port has more encodings than we provided space for. Some are dropped (%u vs %u).\n",
31 + "%s: port has more encodings than we provided space for. Some are dropped (%zu vs %u).\n",
32 __func__, param_size / sizeof(u32),
33 MAX_SUPPORTED_ENCODINGS);
34 num_encodings = MAX_SUPPORTED_ENCODINGS;