[ltt-dev] [PATCH] Adding padding to nsec for easy time comparison

Francis Giraldeau francis.giraldeau at gmail.com
Wed May 4 13:14:14 EDT 2011


---
 lttv/modules/text/formattedDump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lttv/modules/text/formattedDump.c b/lttv/modules/text/formattedDump.c
index c4054aa..fd893b0 100644
--- a/lttv/modules/text/formattedDump.c
+++ b/lttv/modules/text/formattedDump.c
@@ -239,7 +239,7 @@ void lttv_event_to_string(LttEvent *e, GString *string_buffer, gboolean mandator
 						time.tv_sec);
 				break;
 			case 'n':
-				g_string_append_printf(string_buffer, "%ld",
+				g_string_append_printf(string_buffer, "%09ld",
 						time.tv_nsec);
 				break;
 			case 'i':
-- 
1.7.1





More information about the lttng-dev mailing list