[BUGFIX][PATCH] LinuxPPS: Fix nanoseconds field in timestamp debugoutput

From: Michel Roelofs
Date: Sat Jan 08 2011 - 09:13:06 EST


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

Signed-off-by: Michel Roelofs <michel@xxxxxxxxxxxxxxxx>
Acked-by: Rodolfo Giometti <giometti@xxxxxxxx>
---
drivers/pps/kapi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/pps/kapi.c b/drivers/pps/kapi.c
index 1aa02db..b0e347c 100644
--- a/drivers/pps/kapi.c
+++ b/drivers/pps/kapi.c
@@ -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);
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/