V4L/DVB (13226): pvrusb2: Add hardware description to debuginfo output
authorMike Isely <isely@pobox.com>
Mon, 12 Oct 2009 03:25:09 +0000 (00:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:59 +0000 (18:40 -0200)
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pvrusb2/pvrusb2-debugifc.c

index fbe3856..010018b 100644 (file)
@@ -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);