summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorliujing <liujing@cmss.chinamobile.com>2025-09-22 17:50:57 +0800
committerNamhyung Kim <namhyung@kernel.org>2025-11-16 23:12:19 -0800
commit38367a22abba12b9ecd66536ff62274f0afbcf6f (patch)
tree354b42003fb4bf9655ac56657c337bef8a26ae77 /tools
parent86ce2a29dd9a3564fd7be584c8bb7ced28f7ca02 (diff)
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/cs-etm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c
index 62812bef1edf..25d56e0f1c07 100644
--- a/tools/perf/util/cs-etm.c
+++ b/tools/perf/util/cs-etm.c
@@ -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';