diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-09-23 17:20:59 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-09-27 10:47:23 +0200 |
commit | 10939357c4cc178d4a8628a728cb33f70b3d4edd (patch) | |
tree | b4e16fa27c1b6e4efc5e31f1532318c2975b6d3e /drivers/media/platform | |
parent | 06016a67c61675642c71358c2afe6ce99b5d1468 (diff) | |
download | linux-stable-10939357c4cc178d4a8628a728cb33f70b3d4edd.tar.gz linux-stable-10939357c4cc178d4a8628a728cb33f70b3d4edd.tar.bz2 linux-stable-10939357c4cc178d4a8628a728cb33f70b3d4edd.zip |
media: vivid: use VIVID_MODULE_NAME to fill bus_info
Fixes this compiler warning:
drivers/media/test-drivers/vivid/vivid-core.c: In function 'vidioc_querycap':
drivers/media/test-drivers/vivid/vivid-core.c:243:35: warning: '%s' directive output may be truncated writing up to 35 bytes into a region of size 23 [-Wformat-truncation=]
243 | "platform:%s", dev->v4l2_dev.name);
| ^~
drivers/media/test-drivers/vivid/vivid-core.c:242:9: note: 'snprintf' output between 10 and 45 bytes into a destination of size 32
242 | snprintf(cap->bus_info, sizeof(cap->bus_info),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
243 | "platform:%s", dev->v4l2_dev.name);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/platform')
0 files changed, 0 insertions, 0 deletions