Re: [PATCH v7 06/22] perf arm-spe: Refactor printing string to buffer

2020-11-09 Thread André Przywara
On 06/11/2020 01:41, Leo Yan wrote: > When outputs strings to the decoding buffer with function snprintf(), > SPE decoder needs to detects if any error returns from snprintf() and if > so needs to directly bail out. If snprintf() returns success, it needs > to update buffer pointer and reduce the

[PATCH v7 06/22] perf arm-spe: Refactor printing string to buffer

2020-11-05 Thread Leo Yan
When outputs strings to the decoding buffer with function snprintf(), SPE decoder needs to detects if any error returns from snprintf() and if so needs to directly bail out. If snprintf() returns success, it needs to update buffer pointer and reduce the buffer length so can continue to output the