[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1281059887.19943.23.camel@Joe-Laptop.home>
Date: Thu, 05 Aug 2010 18:58:07 -0700
From: Joe Perches <joe@...ches.com>
To: Arnaldo Carvalho de Melo <acme@...radead.org>
Cc: Ingo Molnar <mingo@...e.hu>, linux-kernel@...r.kernel.org,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Mike Galbraith <efault@....de>,
Peter Zijlstra <peterz@...radead.org>,
Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 05/10] perf hists: Fixup addr snprintf width on 32 bit
arches
On Thu, 2010-08-05 at 22:46 -0300, Arnaldo Carvalho de Melo wrote:
> From: Arnaldo Carvalho de Melo <acme@...hat.com>
> By using BITS_PER_LONG/4 as the width specifier.
[]
> diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c
> index 1c61a4f..b62a553 100644
> --- a/tools/perf/util/sort.c
> +++ b/tools/perf/util/sort.c
[]
> - ret += repsep_snprintf(bf, size, "%#018llx %c ", self->ip, o);
> + ret += repsep_snprintf(bf, size, "%*Lx %c ",
> + BITS_PER_LONG / 4, self->ip, o);
[]
> - ret += repsep_snprintf(bf + ret, size - ret, "%#016llx", self->ip);
> + ret += repsep_snprintf(bf + ret, size - ret, "%*Lx",
> + BITS_PER_LONG / 4, self->ip);
This drops leading 0's.
--
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