aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-06-20 09:52:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-20 12:46:36 -0400
commit3543fb776d8e63934615bf7070ee5fa5a6a7382d (patch)
tree23d72ea3e76e14a7b61bd0c4e20b3dea34feb5ad /drivers/thunderbolt
parent0cb4e2be8bce5e176021a2e96b38e5d3727645a4 (diff)
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 <arnd@arndb.de> Acked-by: Andreas Noever <andreas.noever@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/eeprom.c2
1 files changed, 1 insertions, 1 deletions
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,
323 struct tb_drom_entry_port *entry = (void *) header; 323 struct tb_drom_entry_port *entry = (void *) header;
324 if (header->len != sizeof(*entry)) { 324 if (header->len != sizeof(*entry)) {
325 tb_sw_warn(sw, 325 tb_sw_warn(sw,
326 "port entry has size %#x (expected %#lx)\n", 326 "port entry has size %#x (expected %#zx)\n",
327 header->len, sizeof(struct tb_drom_entry_port)); 327 header->len, sizeof(struct tb_drom_entry_port));
328 return -EIO; 328 return -EIO;
329 } 329 }