瀏覽代碼

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>
Mike Isely 16 年之前
父節點
當前提交
aa976ca1df
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/media/video/pvrusb2/pvrusb2-debugifc.c

+ 3 - 0
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);