]> git.karo-electronics.de Git - linux-beck.git/commitdiff
TTY: fix decimal printf format specifiers prefixed with 0x
authorHans Wennborg <hans@hanshq.net>
Wed, 6 Aug 2014 04:43:42 +0000 (21:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:51:35 +0000 (15:51 -0700)
The prefix suggests the number should be printed in hex, so use
the %x specifier to do that.

Found by using regex suggested by Joe Perches.

Signed-off-by: Hans Wennborg <hans@hanshq.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/moxa.c

index 1deaca4674e4405fb925a50fbd289f3b9b5c74b6..14c54e0410650aa00cf1a3494fd4bb2d151ff089 100644 (file)
@@ -1096,7 +1096,7 @@ static int __init moxa_init(void)
                                continue;
                        }
 
-                       printk(KERN_INFO "MOXA isa board found at 0x%.8lu and "
+                       printk(KERN_INFO "MOXA isa board found at 0x%.8lx and "
                                        "ready (%u ports, firmware loaded)\n",
                                        baseaddr[i], brd->numPorts);