Skip to content

Commit 85ddc41

Browse files
fishilicogregkh
authored andcommitted
pcmcia: remove left-over %Z format
commit ff5a20169b98d84ad8d7f99f27c5ebbb008204d6 upstream. Commit 5b5e0928f742 ("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.org Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Cc: Harald Welte <laforge@gnumonks.org> Cc: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6987779 commit 85ddc41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/char/pcmcia/cm4040_cs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
374374

375375
rc = write_sync_reg(SCR_HOST_TO_READER_START, dev);
376376
if (rc <= 0) {
377-
DEBUGP(5, dev, "write_sync_reg c=%.2Zx\n", rc);
377+
DEBUGP(5, dev, "write_sync_reg c=%.2zx\n", rc);
378378
DEBUGP(2, dev, "<- cm4040_write (failed)\n");
379379
if (rc == -ERESTARTSYS)
380380
return rc;
@@ -387,7 +387,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
387387
for (i = 0; i < bytes_to_write; i++) {
388388
rc = wait_for_bulk_out_ready(dev);
389389
if (rc <= 0) {
390-
DEBUGP(5, dev, "wait_for_bulk_out_ready rc=%.2Zx\n",
390+
DEBUGP(5, dev, "wait_for_bulk_out_ready rc=%.2zx\n",
391391
rc);
392392
DEBUGP(2, dev, "<- cm4040_write (failed)\n");
393393
if (rc == -ERESTARTSYS)
@@ -403,7 +403,7 @@ static ssize_t cm4040_write(struct file *filp, const char __user *buf,
403403
rc = write_sync_reg(SCR_HOST_TO_READER_DONE, dev);
404404

405405
if (rc <= 0) {
406-
DEBUGP(5, dev, "write_sync_reg c=%.2Zx\n", rc);
406+
DEBUGP(5, dev, "write_sync_reg c=%.2zx\n", rc);
407407
DEBUGP(2, dev, "<- cm4040_write (failed)\n");
408408
if (rc == -ERESTARTSYS)
409409
return rc;

0 commit comments

Comments
 (0)