![Álvaro Fernández Rojas](/assets/img/avatar_default.png)
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
35 lines
1.6 KiB
Diff
35 lines
1.6 KiB
Diff
From 2a316a52b69d136933a5b22f6f7f93a6f057db7f Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Mon, 1 Feb 2021 18:55:37 +0000
|
|
Subject: [PATCH] staging/bcm2835-codec: Correct logging of size_t to
|
|
%zu
|
|
|
|
Fixes: "staging/bcm2835-codec: Log the number of excess supported formats"
|
|
Which used %u for printing a size_t, and 64bit builds then log a warning.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
.../staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
|
|
+++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c
|
|
@@ -2837,7 +2837,7 @@ static int bcm2835_codec_get_supported_f
|
|
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;
|
|
@@ -2883,7 +2883,7 @@ static int bcm2835_codec_get_supported_f
|
|
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;
|