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