[PATCH -next] infiniband: fix printk format in hw/nes_cm.c

Randy Dunlap
2011-10-13T22:08:07Z

From: Randy Dunlap <rdunlap@xenotime.net>

Fix printk format warning seen on x86_64:
drivers/infiniband/hw/nes/nes_cm.c:3190:2: warning: format '%zu' expects type 'size_t', but argument 11 has type 'int'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Faisal Latif <faisal.latif@intel.com>
---
drivers/infiniband/hw/nes/nes_cm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- next-2011-1013.orig/drivers/infiniband/hw/nes/nes_cm.c
+++ next-2011-1013/drivers/infiniband/hw/nes/nes_cm.c
@@ -3189,7 +3189,7 @@ int nes_accept(struct iw_cm_id *cm_id, s

nes_debug(NES_DBG_CM, "QP%u, Destination IP = 0x%08X:0x%04X, local = "
"0x%08X:0x%04X, rcv_nxt=0x%08X, snd_nxt=0x%08X, mpa + "
- "private data length=%zu.\n", nesqp->hwqp.qp_id,
+ "private data length=%u.\n", nesqp->hwqp.qp_id,
ntohl(cm_id->remote_addr.sin_addr.s_addr),
ntohs(cm_id->remote_addr.sin_port),
ntohl(cm_id->local_addr.sin_addr.s_addr),