mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
perf sample: Fix the wrong format specifier
In the file tools/perf/util/cs-etm.c, queue_nr is of type unsigned int and should be printed with %u. Signed-off-by: liujing <liujing@cmss.chinamobile.com> Reviewed-by: Mike Leach <mike.leach@linaro.org> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
86ce2a29dd
commit
38367a22ab
|
|
@ -777,7 +777,7 @@ static void cs_etm__packet_dump(const char *pkt_string, void *data)
|
|||
char queue_nr[64];
|
||||
|
||||
if (verbose)
|
||||
snprintf(queue_nr, sizeof(queue_nr), "Qnr:%d; ", etmq->queue_nr);
|
||||
snprintf(queue_nr, sizeof(queue_nr), "Qnr:%u; ", etmq->queue_nr);
|
||||
else
|
||||
queue_nr[0] = '\0';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user