Skip to contentSkip to conversation

ioc4: fix printk format warning

PATCH In review Randy Dunlap 2 participants 2 messages Oct 24, 2006 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioc4: fix printk format warning

From: Randy Dunlap <[email protected]>

Fix printk format warning:
drivers/misc/ioc4.c:213: warning: long long int format, u64 arg (arg 3)

---

 drivers/misc/ioc4.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/misc/ioc4.c +2 -2
@@ -209,8 +209,8 @@ ioc4_clock_calibrate(struct ioc4_driver_
 
 		do_div(ns, IOC4_EXTINT_COUNT_DIVISOR);
 		printk(KERN_DEBUG
-		       "IOC4 %s: PCI clock is %lld ns.\n",
-		       pci_name(idd->idd_pdev), ns);
+		       "IOC4 %s: PCI clock is %llu ns.\n",
+		       pci_name(idd->idd_pdev), (unsigned long long)ns);
 	}
 
 	/* Remember results.  We store the extint clock period rather

---

Acked-by on v1 1/1
#1 lore raw

This change is fine by me.

Quoted 33 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix printk format warning:
drivers/misc/ioc4.c:213: warning: long long int format, u64 arg (arg 3)

---

 drivers/misc/ioc4.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/misc/ioc4.c +2 -4
@@ -209,8 +209,8 @@ ioc4_clock_calibrate(struct ioc4_driver_
 
 		do_div(ns, IOC4_EXTINT_COUNT_DIVISOR);
 		printk(KERN_DEBUG
-		       "IOC4 %s: PCI clock is %lld ns.\n",
-		       pci_name(idd->idd_pdev), ns);
+		       "IOC4 %s: PCI clock is %llu ns.\n",
+		       pci_name(idd->idd_pdev), (unsigned long long)ns);
 	}
 
 	/* Remember results.  We store the extint clock period rather
 
 
---
-

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 3 lines
Brent Casavant                          All music is folk music.  I ain't
[email protected]                        never heard a horse sing a song.
Silicon Graphics, Inc.                    -- Louis Armstrong