Skip to contentSkip to conversation

IRDA: fix printk format

PATCH New Randy Dunlap 1 participant 1 message Jun 26, 2007 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IRDA: fix printk format

From: Randy Dunlap <[email protected]>

Fix printk format warning:
drivers/net/irda/irport.c:512: warning: format '%d' expects type 'int', but argument 5 has type 'long int'

---
 drivers/net/irda/irport.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/irda/irport.c +1 -1
@@ -509,7 +509,7 @@ static void irport_timeout(struct net_de
 	IRDA_DEBUG(0, "%s(), iir=%02x, lsr=%02x, iobase=%#x\n", 
 		   __FUNCTION__, iir, lsr, iobase);
 
-	IRDA_DEBUG(0, "%s(), transmitting=%d, remain=%d, done=%d\n", 
+	IRDA_DEBUG(0, "%s(), transmitting=%d, remain=%d, done=%ld\n", 
 		   __FUNCTION__, self->transmitting, self->tx_buff.len,
 		   self->tx_buff.data - self->tx_buff.head);