Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

liujing and committed by
Namhyung Kim
38367a22 86ce2a29

+1 -1
+1 -1
tools/perf/util/cs-etm.c
··· 777 777 char queue_nr[64]; 778 778 779 779 if (verbose) 780 - snprintf(queue_nr, sizeof(queue_nr), "Qnr:%d; ", etmq->queue_nr); 780 + snprintf(queue_nr, sizeof(queue_nr), "Qnr:%u; ", etmq->queue_nr); 781 781 else 782 782 queue_nr[0] = '\0'; 783 783