parse_em28xx_drxk.pl: Better document a read error
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 9 Jul 2011 18:14:30 +0000 (15:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 9 Jul 2011 18:14:30 +0000 (15:14 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
contrib/em28xx/parse_em28xx_drxk.pl

index e0ec3fc..d9f195e 100755 (executable)
@@ -2165,7 +2165,7 @@ parse_error:
        # Fallback: Couldn't parse it
        if ($write) {
                if ($old_flags > 0) {
-                       printf "%s%d_flags(state, 0x%s, %s, 0x%08x, NOTHING!!!);\n", $cmd, $bits, $addr, $old_reg, $old_flags;
+                       printf "ERR: DRX-K write(state, 0x%s, %s, 0x%08x) without data. Probably an read ops + read error\n", $bits, $addr, $old_reg, $old_flags;
                }
                printf "i2c_master_send(0x%s>>1, { %s }, %d);\n", $addr, $app_data, $n;
        } else {