[ltt-dev] [PATCH] Adding padding to nsec for easy time comparison
Yannick Brosseau
yannick.brosseau at gmail.com
Wed May 4 14:49:49 EDT 2011
On 2011-05-04 13:14, Francis Giraldeau wrote:
> ---
> 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);
I would prefer to have two differents options for output with and
without padding, so we can choose if we want it or not.
More information about the lttng-dev
mailing list