summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-debugifc.c
diff options
context:
space:
mode:
authorMike Isely2009-10-12 05:25:09 +0200
committerMauro Carvalho Chehab2009-12-05 21:40:59 +0100
commitaa976ca1dfb2e5b3fb67eeaf1ca44182ef3efcdb (patch)
tree1fd691d26f7ba5735c4db67b040f1ce73015ae89 /drivers/media/video/pvrusb2/pvrusb2-debugifc.c
parentV4L/DVB (13225): pvrusb2: Report hardware description to kernel log upon init... (diff)
downloadkernel-qcow2-linux-aa976ca1dfb2e5b3fb67eeaf1ca44182ef3efcdb.tar.gz
kernel-qcow2-linux-aa976ca1dfb2e5b3fb67eeaf1ca44182ef3efcdb.tar.xz
kernel-qcow2-linux-aa976ca1dfb2e5b3fb67eeaf1ca44182ef3efcdb.zip
V4L/DVB (13226): pvrusb2: Add hardware description to debuginfo output
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-debugifc.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-debugifc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-debugifc.c b/drivers/media/video/pvrusb2/pvrusb2-debugifc.c
index fbe3856bdca6..010018bc8383 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-debugifc.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-debugifc.c
@@ -142,6 +142,9 @@ int pvr2_debugifc_print_info(struct pvr2_hdw *hdw,char *buf,unsigned int acnt)
{
int bcnt = 0;
int ccnt;
+ ccnt = scnprintf(buf, acnt, "Driver hardware description: %s\n",
+ pvr2_hdw_get_desc(hdw));
+ bcnt += ccnt; acnt -= ccnt; buf += ccnt;
ccnt = scnprintf(buf,acnt,"Driver state info:\n");
bcnt += ccnt; acnt -= ccnt; buf += ccnt;
ccnt = pvr2_hdw_state_report(hdw,buf,acnt);