diff options
author | Wolfgang Denk <wd@denx.de> | 2008-07-14 15:06:35 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-07-14 15:06:35 +0200 |
commit | b64f190b7a34224df09b559ca111eb1b733f00ad (patch) | |
tree | 1b3461f4d02a4872bd3c8bd186d5d58f2288e173 /drivers/serial | |
parent | f354b73e16a86f9e9085471a830605f74f84ea5d (diff) |
Fix printf() format issues with sizeof_t types by using %zu
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/usbtty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index cc2bdac479e..2bc5c3c8387 100644 --- a/drivers/serial/usbtty.c +++ b/drivers/serial/usbtty.c @@ -529,8 +529,8 @@ int drv_usbtty_init (void) } snlen = strlen(sn); if (snlen > sizeof(serial_number) - 1) { - printf ("Warning: serial number %s is too long (%d > %d)\n", - sn, snlen, sizeof(serial_number) - 1); + printf ("Warning: serial number %s is too long (%d > %lu)\n", + sn, snlen, (ulong)(sizeof(serial_number) - 1)); snlen = sizeof(serial_number) - 1; } memcpy (serial_number, sn, snlen); |