[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20101227161821.GA21789@ster.michelroelofs.nl>
Date: Mon, 27 Dec 2010 17:18:22 +0100
From: Michel Roelofs <michel@...helroelofs.nl>
To: linux-kernel@...r.kernel.org
Subject: [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