Commit a2401d9e authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

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: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 2c4963d4
...@@ -288,7 +288,7 @@ static ssize_t store_val_norm(int id,struct device *class_dev, ...@@ -288,7 +288,7 @@ static ssize_t store_val_norm(int id,struct device *class_dev,
int ret; int ret;
sfp = (struct pvr2_sysfs *)class_dev->driver_data; sfp = (struct pvr2_sysfs *)class_dev->driver_data;
pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_norm(cid=%d) \"%.*s\"", pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_norm(cid=%d) \"%.*s\"",
sfp,id,count,buf); sfp,id,(int)count,buf);
ret = store_val_any(id,0,sfp,buf,count); ret = store_val_any(id,0,sfp,buf,count);
if (!ret) ret = count; if (!ret) ret = count;
return ret; return ret;
...@@ -301,7 +301,7 @@ static ssize_t store_val_custom(int id,struct device *class_dev, ...@@ -301,7 +301,7 @@ static ssize_t store_val_custom(int id,struct device *class_dev,
int ret; int ret;
sfp = (struct pvr2_sysfs *)class_dev->driver_data; sfp = (struct pvr2_sysfs *)class_dev->driver_data;
pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_custom(cid=%d) \"%.*s\"", pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_custom(cid=%d) \"%.*s\"",
sfp,id,count,buf); sfp,id,(int)count,buf);
ret = store_val_any(id,1,sfp,buf,count); ret = store_val_any(id,1,sfp,buf,count);
if (!ret) ret = count; if (!ret) ret = count;
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment