tcm_fc: Fix conversion spec warning
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 23 Jun 2011 23:28:46 +0000 (23:28 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 24 Jun 2011 00:09:16 +0000 (00:09 +0000)
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>
drivers/target/tcm_fc/tfc_io.c

index 4c3c0efbe13f5b97158f92c51d17d46a5001ab40..8c4a24077d9d701fc6902501f9ad9f53775c24b2 100644 (file)
@@ -203,7 +203,7 @@ int ft_queue_data_in(struct se_cmd *se_cmd)
                        /* XXX For now, initiator will retry */
                        if (printk_ratelimit())
                                printk(KERN_ERR "%s: Failed to send frame %p, "
-                                               "xid <0x%x>, remaining <0x%x>, "
+                                               "xid <0x%x>, remaining %zu, "
                                                "lso_max <0x%x>\n",
                                                __func__, fp, ep->xid,
                                                remaining, lport->lso_max);