linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: parport: Fix format string mismatch in bw-qcam.c
@ 2014-04-30 15:57 Masanari Iida
  0 siblings, 0 replies; only message in thread
From: Masanari Iida @ 2014-04-30 15:57 UTC (permalink / raw)
  To: m.chehab, linux-media, hverkuil; +Cc: Masanari Iida

Fix format string mismatch in bw-qcam.c

Signed-off-by: Masanari Iida <standby24x7@gmail.com>
---
 drivers/media/parport/bw-qcam.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/parport/bw-qcam.c b/drivers/media/parport/bw-qcam.c
index 8a0e84c..416507a 100644
--- a/drivers/media/parport/bw-qcam.c
+++ b/drivers/media/parport/bw-qcam.c
@@ -937,7 +937,7 @@ static struct qcam *qcam_init(struct parport *port)
 		return NULL;
 
 	v4l2_dev = &qcam->v4l2_dev;
-	snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "bw-qcam%d", num_cams);
+	snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "bw-qcam%u", num_cams);
 
 	if (v4l2_device_register(port->dev, v4l2_dev) < 0) {
 		v4l2_err(v4l2_dev, "Could not register v4l2_device\n");
-- 
2.0.0.rc1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-30 15:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 15:57 [PATCH] media: parport: Fix format string mismatch in bw-qcam.c Masanari Iida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).