Commit ff5a2016 authored by Nicolas Iooss's avatar Nicolas Iooss Committed by Linus Torvalds

pcmcia: remove left-over %Z format

Commit 5b5e0928 ("lib/vsprintf.c: remove %Z support") removed some
usages of format %Z but forgot "%.2Zx".  This makes clang 4.0 reports a
-Wformat-extra-args warning because it does not know about %Z.

Replace %Z with %z.

Link: http://lkml.kernel.org/r/20170520090946.22562-1-nicolas.iooss_linux@m4x.orgSigned-off-by: default avatarNicolas Iooss <nicolas.iooss_linux@m4x.org>
Cc: Harald Welte <laforge@gnumonks.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: <stable@vger.kernel.org>	[4.11+]
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 478fe303
...@@ -374,7 +374,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf, ...@@ -374,7 +374,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
rc = write_sync_reg(SCR_HOST_TO_READER_START, dev); rc = write_sync_reg(SCR_HOST_TO_READER_START, dev);
if (rc <= 0) { if (rc <= 0) {
DEBUGP(5, dev, "write_sync_reg c=%.2Zx\n", rc); DEBUGP(5, dev, "write_sync_reg c=%.2zx\n", rc);
DEBUGP(2, dev, "<- cm4040_write (failed)\n"); DEBUGP(2, dev, "<- cm4040_write (failed)\n");
if (rc == -ERESTARTSYS) if (rc == -ERESTARTSYS)
return rc; return rc;
...@@ -387,7 +387,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf, ...@@ -387,7 +387,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
for (i = 0; i < bytes_to_write; i++) { for (i = 0; i < bytes_to_write; i++) {
rc = wait_for_bulk_out_ready(dev); rc = wait_for_bulk_out_ready(dev);
if (rc <= 0) { if (rc <= 0) {
DEBUGP(5, dev, "wait_for_bulk_out_ready rc=%.2Zx\n", DEBUGP(5, dev, "wait_for_bulk_out_ready rc=%.2zx\n",
rc); rc);
DEBUGP(2, dev, "<- cm4040_write (failed)\n"); DEBUGP(2, dev, "<- cm4040_write (failed)\n");
if (rc == -ERESTARTSYS) if (rc == -ERESTARTSYS)
...@@ -403,7 +403,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf, ...@@ -403,7 +403,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
rc = write_sync_reg(SCR_HOST_TO_READER_DONE, dev); rc = write_sync_reg(SCR_HOST_TO_READER_DONE, dev);
if (rc <= 0) { if (rc <= 0) {
DEBUGP(5, dev, "write_sync_reg c=%.2Zx\n", rc); DEBUGP(5, dev, "write_sync_reg c=%.2zx\n", rc);
DEBUGP(2, dev, "<- cm4040_write (failed)\n"); DEBUGP(2, dev, "<- cm4040_write (failed)\n");
if (rc == -ERESTARTSYS) if (rc == -ERESTARTSYS)
return rc; return rc;
......
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