v4l2-dbg: fix --list-symbols option
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 22 Dec 2008 11:36:29 +0000 (09:36 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 22 Dec 2008 11:36:29 +0000 (09:36 -0200)
From: Mauro Carvalho Chehab <mchehab@redhat.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/v4l2-dbg.cpp

index 31206a5..c1e107d 100644 (file)
@@ -706,9 +706,9 @@ list_done:
                else {
                        printf("Symbols for driver %s:\n", vcap.driver);
                        for (int i = 0; i < curr_bd->regs_size; i++)
-                               printf("0x%08x: %s\n", curr_bd->regs[i], curr_bd->regs[i].name);
+                               printf("0x%08x: %s\n", curr_bd->regs[i].reg, curr_bd->regs[i].name);
                        for (int i = 0; i < curr_bd->alt_regs_size; i++)
-                               printf("0x%08x: %s\n", curr_bd->alt_regs[i], curr_bd->alt_regs[i].name);
+                               printf("0x%08x: %s\n", curr_bd->alt_regs[i].reg, curr_bd->alt_regs[i].name);
                }
        }