7313cd29bf6902d744652af839705fc0af16e82c
[openwrt/staging/wigyori.git] /
1 From 2a316a52b69d136933a5b22f6f7f93a6f057db7f 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
5 %zu
6
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.
9
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
11 ---
12 .../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
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
18 if (ret) {
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
27 if (ret) {
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;