Skip to contentSkip to conversation

ps3_gelic_wireless: fix format warning

DISCUSSION Geert Uytterhoeven 2 participants 2 messages Mar 8, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 20 lines · Linux Kernel Mailing List

Gitweb:     http://git.kernel.org/linus/c6c97bdaa3307d0811f14c99c38c63a8dae36e1f
Commit:     c6c97bdaa3307d0811f14c99c38c63a8dae36e1f
Parent:     d3a571971e5af241074947fc80f6284677f6e014
Author:     John W. Linville <[email protected]>
AuthorDate: Mon Feb 1 09:55:56 2010 -0500
Committer:  John W. Linville <[email protected]>
CommitDate: Mon Feb 1 09:55:56 2010 -0500

   ps3_gelic_wireless: fix format warning

---
 drivers/net/ps3_gelic_wireless.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ps3_gelic_wireless.c +0 -0
index d520e9e..448c5b6 100644

drivers/net/ps3_gelic_wireless.c static int gelic_wl_start_scan(struct gelic_wl_info *wl, int always_scan, · line 1452

Quoted 5 lines
drivers/net/ps3_gelic_wireless.c +1 -1
@@ -1449,7 +1449,7 @@ static int gelic_wl_start_scan(struct gelic_wl_info *wl, int always_scan,
        void *buf = NULL;
        size_t len;
 
-       pr_debug("%s: <- always=%d essid_len=%d\n", __func__,
+       pr_debug("%s: <- always=%d essid_len=%z\n", __func__,

z' is just a modifier for a (missing) type, so this should be %zu'.

drivers/net/ps3_gelic_wireless.c static int gelic_wl_start_scan(struct gelic_wl_info *wl, int always_scan, · line 1455

Quoted 3 lines
drivers/net/ps3_gelic_wireless.c +0 -0
                 always_scan, essid_len);
        if (mutex_lock_interruptible(&wl->scan_lock))
                return -ERESTARTSYS;

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#2 lore raw
Quoted 25 lines · Geert Uytterhoeven
Quoted 23 lines · Linux Kernel Mailing List

Gitweb:     http://git.kernel.org/linus/c6c97bdaa3307d0811f14c99c38c63a8dae36e1f
Commit:     c6c97bdaa3307d0811f14c99c38c63a8dae36e1f
Parent:     d3a571971e5af241074947fc80f6284677f6e014
Author:     John W. Linville <[email protected]>
AuthorDate: Mon Feb 1 09:55:56 2010 -0500
Committer:  John W. Linville <[email protected]>
CommitDate: Mon Feb 1 09:55:56 2010 -0500

   ps3_gelic_wireless: fix format warning

---
 drivers/net/ps3_gelic_wireless.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ps3_gelic_wireless.c +0 -0
index d520e9e..448c5b6 100644
@@ -1449,7 +1449,7 @@ static int gelic_wl_start_scan(struct gelic_wl_info *wl, int always_scan,
        void *buf = NULL;
        size_t len;
 
Quoted 4 lines

drivers/net/ps3_gelic_wireless.c static int gelic_wl_start_scan(struct gelic_wl_info *wl, int always_scan, · line 1452

Quoted 2 lines
drivers/net/ps3_gelic_wireless.c +1 -1
-       pr_debug("%s: <- always=%d essid_len=%d\n", __func__,
+       pr_debug("%s: <- always=%d essid_len=%z\n", __func__,

z' is just a modifier for a (missing) type, so this should be %zu'.

Ugh...yes, correct. I'll fix it.

Thanks!

John

Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
[email protected]			might be all we have.  Be ready.