Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=16cf1d0c5d7b8970aca2ca426166833642ce0544
Commit:     16cf1d0c5d7b8970aca2ca426166833642ce0544
Parent:     aeb292d1342c649ac0b35ae9205b761fd14adb57
Author:     Trent Piepho <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 21 08:19:16 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:06:28 2007 -0300

    V4L/DVB (6082): cx88: Improve risc instruction printing in sram channel dump
    
    When the risc instrunctions from the CMDS were printed, instruction 
arguments
    weren't taken into account.
    
    This changes output like:
    cx88[0]:   risc0: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
    cx88[0]:   risc1: 0x0cac2800 [ INVALID sol eol 23 21 19 18 13 count=2048 ]
    cx88[0]:   risc2: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
    cx88[0]:   risc3: 0x0cac2c00 [ INVALID sol eol 23 21 19 18 13 count=3072 ]
    
    cx88[0]:   risc0: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
    cx88[0]:   risc1: 0x0cac2800 [ arg #1 ]
    cx88[0]:   risc2: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
    cx88[0]:   risc3: 0x0cac2c00 [ arg #1 ]
    
    Signed-off-by: Trent Piepho <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/cx88/cx88-core.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/cx88/cx88-core.c 
b/drivers/media/video/cx88/cx88-core.c
index cea3212..ce7f1f0 100644
--- a/drivers/media/video/cx88/cx88-core.c
+++ b/drivers/media/video/cx88/cx88-core.c
@@ -434,10 +434,13 @@ void cx88_sram_channel_dump(struct cx88_core *core,
                printk("%s:   cmds: %-12s: 0x%08x\n",
                       core->name,name[i],
                       cx_read(ch->cmds_start + 4*i));
-       for (i = 0; i < 4; i++) {
+       for (n = 1, i = 0; i < 4; i++) {
                risc = cx_read(ch->cmds_start + 4 * (i+11));
                printk("%s:   risc%d: ", core->name, i);
-               cx88_risc_decode(risc);
+               if (--n)
+                       printk("0x%08x [ arg #%d ]\n", risc, n);
+               else
+                       n = cx88_risc_decode(risc);
        }
        for (i = 0; i < 16; i += n) {
                risc = cx_read(ch->ctrl_start + 4 * i);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to