Commit 95efa2863996b643083957079b9304fb3c01130f

Authored by Nicholas Bellinger
1 parent 7c7cf3b9c3

tcm_fc: Fix conversion spec warning

This patch fixes the following conversion specification warning for size_t

drivers/target/tcm_fc/tfc_io.c: In function ‘ft_queue_data_in’:
drivers/target/tcm_fc/tfc_io.c:209: warning: format ‘%x’ expects type ‘unsigned int’, but argument 5 has type ‘size_t’

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/target/tcm_fc/tfc_io.c
... ... @@ -203,7 +203,7 @@
203 203 /* XXX For now, initiator will retry */
204 204 if (printk_ratelimit())
205 205 printk(KERN_ERR "%s: Failed to send frame %p, "
206   - "xid <0x%x>, remaining <0x%x>, "
  206 + "xid <0x%x>, remaining %zu, "
207 207 "lso_max <0x%x>\n",
208 208 __func__, fp, ep->xid,
209 209 remaining, lport->lso_max);