summaryrefslogtreecommitdiffstats
path: root/firmware/atmsar11.HEX
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2012-10-23 22:44:50 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-30 10:32:56 -0200
commitf787d9519fb10411f2948f5b9957a1669879ba84 (patch)
tree844cabbae20e511912261ca2ad3ece33852e5bd3 /firmware/atmsar11.HEX
parent1234471e2d11e4ee47f6de452dd8b8aeb09b45de (diff)
downloadlinux-f787d9519fb10411f2948f5b9957a1669879ba84.tar.gz
linux-f787d9519fb10411f2948f5b9957a1669879ba84.tar.bz2
linux-f787d9519fb10411f2948f5b9957a1669879ba84.zip
perf tools: Fix strbuf_addf() when the buffer needs to grow
This was found during chasing down the header output regression. The strbuf_addf() was checking buffer length with a result of vscnprintf() which cannot be greater than that of strbuf_avail(). Since numa topology and pmu mapping info in header were converted to use strbuf, it sometimes caused uninteresting behaviors with the broken strbuf. Fix it by using vsnprintf() which returns desired output string length regardless of the available buffer size and grow the buffer if needed. Reported-by: Andrew Jones <drjones@redhat.com> Tested-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Andrew Jones <drjones@redhat.com> Link: http://lkml.kernel.org/r/1350999890-6920-2-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'firmware/atmsar11.HEX')
0 files changed, 0 insertions, 0 deletions