From: Arnd Bergmann Date: Fri, 20 Jun 2014 13:52:11 +0000 (+0200) Subject: thunderbolt: fix format string for size_t X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3543fb776d8e63934615bf7070ee5fa5a6a7382d;p=linux-beck.git thunderbolt: fix format string for size_t The result of "sizeof(struct tb_drom_entry_port)" is a size_t, which is not necessarily the same as 'long', so we should use the appropriate %z format string instead of %l. Signed-off-by: Arnd Bergmann Acked-by: Andreas Noever Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/thunderbolt/eeprom.c b/drivers/thunderbolt/eeprom.c index bc0449f581c2..b133f3fdaf51 100644 --- a/drivers/thunderbolt/eeprom.c +++ b/drivers/thunderbolt/eeprom.c @@ -323,7 +323,7 @@ static int tb_drom_parse_entry(struct tb_switch *sw, struct tb_drom_entry_port *entry = (void *) header; if (header->len != sizeof(*entry)) { tb_sw_warn(sw, - "port entry has size %#x (expected %#lx)\n", + "port entry has size %#x (expected %#zx)\n", header->len, sizeof(struct tb_drom_entry_port)); return -EIO; }