]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] xc5000: show debug version fields in decimal instead of hex
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Tue, 7 Aug 2012 01:47:11 +0000 (22:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 9 Aug 2012 23:58:05 +0000 (20:58 -0300)
The driver prints out a dotted version number but it's in hex.  As a
result, the version doesn't visibly match the filename for the firmware,
and it caused a bunch of confusion while discussing different versions
with the chip manufacturer.

Change the firmware printout to be in decimal.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c

index b488c0e1bcd79779240c9e8b479e02e300fdce9c..0720d90c985fc2746ca3b793e7bd311aab4f50ad 100644 (file)
@@ -704,7 +704,7 @@ static void xc_debug_dump(struct xc5000_priv *priv)
        xc_get_version(priv,  &hw_majorversion, &hw_minorversion,
                &fw_majorversion, &fw_minorversion);
        xc_get_buildversion(priv,  &fw_buildversion);
-       dprintk(1, "*** HW: V%02x.%02x, FW: V%02x.%02x.%04x\n",
+       dprintk(1, "*** HW: V%d.%d, FW: V %d.%d.%d\n",
                hw_majorversion, hw_minorversion,
                fw_majorversion, fw_minorversion, fw_buildversion);