[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110108141257.GA24344@ster.michelroelofs.nl>
Date: Sat, 8 Jan 2011 15:12:57 +0100
From: Michel Roelofs <michel@...helroelofs.nl>
To: linux-kernel@...r.kernel.org
Cc: Rodolfo Giometti <giometti@...ux.it>
Subject: [BUGFIX][PATCH] 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.
Signed-off-by: Michel Roelofs <michel@...helroelofs.nl>
Acked-by: Rodolfo Giometti <giometti@...ux.it>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists