linux_old1/tools/perf/arch
Arnaldo Carvalho de Melo e7f01d1e3d perf tools: Use scnprintf where applicable
Several places were expecting that the value returned was the number of
characters printed, not what would be printed if there was space.

Fix it by using the scnprintf and vscnprintf variants we inherited from
the kernel sources.

Some corner cases where the number of printed characters were not
accounted were fixed too.

Reported-by: Anton Blanchard <anton@samba.org>
Cc: Anton Blanchard <anton@samba.org>
Cc: Eric B Munson <emunson@mgebm.net>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Cc: stable@kernel.org
Link: http://lkml.kernel.org/n/tip-kwxo2eh29cxmd8ilixi2005x@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-03-14 12:36:19 -03:00
..
arm ARM: fix perf build with uclibc toolchains 2011-08-12 15:40:20 +01:00
powerpc perf tools: Use scnprintf where applicable 2012-03-14 12:36:19 -03:00
s390 [S390] perf: add DWARF register lookup for s390 2011-01-05 12:47:31 +01:00
sh perf tools: Add DWARF register lookup for SH 2010-07-12 11:25:10 -03:00
sparc perf: Add DWARF register lookup for sparc 2010-07-14 22:59:00 -07:00
x86 perf tools: Use scnprintf where applicable 2012-03-14 12:36:19 -03:00