Commit 8ac283ad authored by Randy Dunlap's avatar Randy Dunlap Committed by Greg Kroah-Hartman

aircable: fix printk format warnings

Fix printk format warnings:
drivers/usb/serial/aircable.c:221: warning: format ‘%Zd’ expects type ‘signed size_t’, but argument 4 has type ‘int’
drivers/usb/serial/aircable.c:283: warning: format ‘%Zd’ expects type ‘signed size_t’, but argument 4 has type ‘int’
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3fe70ba2
...@@ -218,7 +218,7 @@ static void aircable_send(struct usb_serial_port *port) ...@@ -218,7 +218,7 @@ static void aircable_send(struct usb_serial_port *port)
buf = kzalloc(count + HCI_HEADER_LENGTH, GFP_ATOMIC); buf = kzalloc(count + HCI_HEADER_LENGTH, GFP_ATOMIC);
if (!buf) { if (!buf) {
err("%s- kzalloc(%Zd) failed.", __FUNCTION__, err("%s- kzalloc(%d) failed.", __FUNCTION__,
count + HCI_HEADER_LENGTH); count + HCI_HEADER_LENGTH);
return; return;
} }
...@@ -280,7 +280,7 @@ static void aircable_read(void *params) ...@@ -280,7 +280,7 @@ static void aircable_read(void *params)
tty_prepare_flip_string(tty, &data, count); tty_prepare_flip_string(tty, &data, count);
if (!data){ if (!data){
err("%s- kzalloc(%Zd) failed.", __FUNCTION__, count); err("%s- kzalloc(%d) failed.", __FUNCTION__, count);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment