Skip to content

Commit

Permalink
staging: fix csr printk format warning
Browse files Browse the repository at this point in the history
Fix printk format warning on i386/X86_32 by using 't' for ptrdiff_t.
Also builds cleanly on x86_64.

drivers/staging/csr/csr_wifi_hip_udi.c: In function 'unifi_print_status':
drivers/staging/csr/csr_wifi_hip_udi.c:151:27: warning: format '%ld' expects type 'long int', but argument 5 has type 'int'

Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
rddunlap authored and gregkh committed Sep 17, 2012
1 parent 8508317 commit 8ab92cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/csr/csr_wifi_hip_udi.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ s32 unifi_print_status(card_t *card, char *str, s32 *remain)
(u16)card->to_host_signals_w);
UNIFI_SNPRINTF_RET(p, remaining, written);
written = scnprintf(p, remaining,
"fh buffer contains: %d signals, %ld bytes\n",
"fh buffer contains: %d signals, %td bytes\n",
card->fh_buffer.count,
card->fh_buffer.ptr - card->fh_buffer.buf);
UNIFI_SNPRINTF_RET(p, remaining, written);
Expand Down

0 comments on commit 8ab92cb

Please sign in to comment.