]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
perf sample: Fix the wrong format specifier
authorliujing <liujing@cmss.chinamobile.com>
Mon, 22 Sep 2025 09:50:57 +0000 (17:50 +0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 17 Nov 2025 07:12:19 +0000 (23:12 -0800)
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>
tools/perf/util/cs-etm.c

index 62812bef1edfee609c8cd2f30518070597775e55..25d56e0f1c078f83221c97ddc11ef15b869f9021 100644 (file)
@@ -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';