Skip to contentSkip to conversation

LinuxPPS: Fix nanoseconds field in timestamp debug output

PATCH New Michel Roelofs 1 participant 1 message Dec 27, 2010 PPS support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 LinuxPPS: Fix nanoseconds field in timestamp debug output

This patch makes the debug output print at least nine digits for the nanoseconds field, instead of at least six.

---
   drivers/pps/kapi.c |    2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)
drivers/pps/kapi.c +1 -1
index 1aa02db..b0e347c 100644
@@ -284,7 +284,7 @@ void pps_event(int source, struct pps_ktime *ts, int event, void *data)
   	if (!pps)
   		return;
   
-	pr_debug("PPS event on source %d at %llu.%06u\n",
+	pr_debug("PPS event on source %d at %llu.%09u\n",
   			pps->id, (unsigned long long) ts->sec, ts->nsec);
   
   	spin_lock_irqsave(&pps->lock, flags);
Signature · 1 line
1.7.0.4