2875a7a2a2
[ Upstream commit 4567ebf8e8f9546b373e78e3b7d584cc30b62028 ] Fixes these compiler warnings: drivers/media/test-drivers/vivid/vivid-rds-gen.c: In function 'vivid_rds_gen_fill': drivers/media/test-drivers/vivid/vivid-rds-gen.c:147:56: warning: '.' directive output may be truncated writing 1 byte into a region of size between 0 and 3 [-Wformat-truncation=] 147 | snprintf(rds->psname, sizeof(rds->psname), "%6d.%1d", | ^ drivers/media/test-drivers/vivid/vivid-rds-gen.c:147:52: note: directive argument in the range [0, 9] 147 | snprintf(rds->psname, sizeof(rds->psname), "%6d.%1d", | ^~~~~~~~~ drivers/media/test-drivers/vivid/vivid-rds-gen.c:147:9: note: 'snprintf' output between 9 and 12 bytes into a destination of size 9 147 | snprintf(rds->psname, sizeof(rds->psname), "%6d.%1d", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 148 | freq / 16, ((freq & 0xf) * 10) / 16); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
vivid-cec.c | ||
vivid-cec.h | ||
vivid-core.c | ||
vivid-core.h | ||
vivid-ctrls.c | ||
vivid-ctrls.h | ||
vivid-kthread-cap.c | ||
vivid-kthread-cap.h | ||
vivid-kthread-out.c | ||
vivid-kthread-out.h | ||
vivid-kthread-touch.c | ||
vivid-kthread-touch.h | ||
vivid-meta-cap.c | ||
vivid-meta-cap.h | ||
vivid-meta-out.c | ||
vivid-meta-out.h | ||
vivid-osd.c | ||
vivid-osd.h | ||
vivid-radio-common.c | ||
vivid-radio-common.h | ||
vivid-radio-rx.c | ||
vivid-radio-rx.h | ||
vivid-radio-tx.c | ||
vivid-radio-tx.h | ||
vivid-rds-gen.c | ||
vivid-rds-gen.h | ||
vivid-sdr-cap.c | ||
vivid-sdr-cap.h | ||
vivid-touch-cap.c | ||
vivid-touch-cap.h | ||
vivid-vbi-cap.c | ||
vivid-vbi-cap.h | ||
vivid-vbi-gen.c | ||
vivid-vbi-gen.h | ||
vivid-vbi-out.c | ||
vivid-vbi-out.h | ||
vivid-vid-cap.c | ||
vivid-vid-cap.h | ||
vivid-vid-common.c | ||
vivid-vid-common.h | ||
vivid-vid-out.c | ||
vivid-vid-out.h |