Please sign in to comment.
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 <email@example.com> Cc: Anton Blanchard <firstname.lastname@example.org> Cc: Eric B Munson <email@example.com> Cc: David Ahern <firstname.lastname@example.org> Cc: Frederic Weisbecker <email@example.com> Cc: Mike Galbraith <firstname.lastname@example.org> Cc: Paul Mackerras <email@example.com> Cc: Peter Zijlstra <firstname.lastname@example.org> Cc: Stephane Eranian <email@example.com> Cc: Yanmin Zhang <firstname.lastname@example.org> Cc: email@example.com Link: http://firstname.lastname@example.org Signed-off-by: Arnaldo Carvalho de Melo <email@example.com>
- Loading branch information...
Showing with 35 additions and 33 deletions.