aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2009-03-06 23:39:40 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:37 -0400
commit5f757ddd5f193f54a5a7498d32568b630583503e (patch)
tree4ed547715d790cdc25daed067e13a0876f30aa13 /drivers/media/video/pvrusb2
parent3ab8d295156a43fc2751483d2f82a63c97489f89 (diff)
V4L/DVB (11186): pvrusb2: Fix bugs involved in listing of sub-devices
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 937c85c5c037..b10b90d97578 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -4855,7 +4855,7 @@ static unsigned int pvr2_hdw_report_unlocked(struct pvr2_hdw *hdw,int which,
4855 unsigned int id; 4855 unsigned int id;
4856 ccnt = scnprintf(buf, 4856 ccnt = scnprintf(buf,
4857 acnt, 4857 acnt,
4858 "Associted v4l2_subdev drivers:"); 4858 "Associated v4l2_subdev drivers:");
4859 tcnt += ccnt; 4859 tcnt += ccnt;
4860 v4l2_device_for_each_subdev(sd, &hdw->v4l2_dev) { 4860 v4l2_device_for_each_subdev(sd, &hdw->v4l2_dev) {
4861 id = sd->grp_id; 4861 id = sd->grp_id;
@@ -4863,10 +4863,16 @@ static unsigned int pvr2_hdw_report_unlocked(struct pvr2_hdw *hdw,int which,
4863 if (id < ARRAY_SIZE(module_names)) { 4863 if (id < ARRAY_SIZE(module_names)) {
4864 p = module_names[id]; 4864 p = module_names[id];
4865 } 4865 }
4866 if (!p) p = "(unknown)"; 4866 if (p) {
4867 ccnt = scnprintf(buf + tcnt, 4867 ccnt = scnprintf(buf + tcnt,
4868 acnt - tcnt, 4868 acnt - tcnt,
4869 " %s (%u)", p, id); 4869 " %s", p);
4870 } else {
4871 ccnt = scnprintf(buf + tcnt,
4872 acnt - tcnt,
4873 " (unknown id=%u)", id);
4874 }
4875 tcnt += ccnt;
4870 } 4876 }
4871 return tcnt; 4877 return tcnt;
4872 } 4878 }