diff options
author | Mike Isely <isely@pobox.com> | 2008-03-08 02:02:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:55 -0400 |
commit | a2401d9eed955d90e682b911c343d7fb4ad22436 (patch) | |
tree | 56b2f1b9a780c5e0fd6e6c5b2fba01974479c92e /drivers/media/video/pvrusb2 | |
parent | 2c4963d4fb6103c0589db411fccf5e4f8531f173 (diff) |
V4L/DVB (7447): pvrusb2: Fix compilation warning
Fix use of a non-int (size_t) being passed in a printf width field.
This benign issue has apparently been around for a long time, but went
undetected until now.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c index 17616f79f34e..78ecfcbdd0b9 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c +++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c | |||
@@ -288,7 +288,7 @@ static ssize_t store_val_norm(int id,struct device *class_dev, | |||
288 | int ret; | 288 | int ret; |
289 | sfp = (struct pvr2_sysfs *)class_dev->driver_data; | 289 | sfp = (struct pvr2_sysfs *)class_dev->driver_data; |
290 | pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_norm(cid=%d) \"%.*s\"", | 290 | pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_norm(cid=%d) \"%.*s\"", |
291 | sfp,id,count,buf); | 291 | sfp,id,(int)count,buf); |
292 | ret = store_val_any(id,0,sfp,buf,count); | 292 | ret = store_val_any(id,0,sfp,buf,count); |
293 | if (!ret) ret = count; | 293 | if (!ret) ret = count; |
294 | return ret; | 294 | return ret; |
@@ -301,7 +301,7 @@ static ssize_t store_val_custom(int id,struct device *class_dev, | |||
301 | int ret; | 301 | int ret; |
302 | sfp = (struct pvr2_sysfs *)class_dev->driver_data; | 302 | sfp = (struct pvr2_sysfs *)class_dev->driver_data; |
303 | pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_custom(cid=%d) \"%.*s\"", | 303 | pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_custom(cid=%d) \"%.*s\"", |
304 | sfp,id,count,buf); | 304 | sfp,id,(int)count,buf); |
305 | ret = store_val_any(id,1,sfp,buf,count); | 305 | ret = store_val_any(id,1,sfp,buf,count); |
306 | if (!ret) ret = count; | 306 | if (!ret) ret = count; |
307 | return ret; | 307 | return ret; |