]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7301): pvrusb2: Implement addition sysfs tracing
authorMike Isely <isely@pobox.com>
Tue, 22 Apr 2008 17:45:38 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:47 +0000 (14:07 -0300)
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-sysfs.c

index 07f4eae184330a6a91796a3d53e07e24a7c3204a..17616f79f34ef52fda085c2b8ddc8f2d1e6e7b6f 100644 (file)
@@ -287,6 +287,8 @@ static ssize_t store_val_norm(int id,struct device *class_dev,
        struct pvr2_sysfs *sfp;
        int ret;
        sfp = (struct pvr2_sysfs *)class_dev->driver_data;
+       pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_norm(cid=%d) \"%.*s\"",
+                        sfp,id,count,buf);
        ret = store_val_any(id,0,sfp,buf,count);
        if (!ret) ret = count;
        return ret;
@@ -298,6 +300,8 @@ static ssize_t store_val_custom(int id,struct device *class_dev,
        struct pvr2_sysfs *sfp;
        int ret;
        sfp = (struct pvr2_sysfs *)class_dev->driver_data;
+       pvr2_sysfs_trace("pvr2_sysfs(%p) store_val_custom(cid=%d) \"%.*s\"",
+                        sfp,id,count,buf);
        ret = store_val_any(id,1,sfp,buf,count);
        if (!ret) ret = count;
        return ret;