From: liujing Date: Mon, 22 Sep 2025 09:50:57 +0000 (+0800) Subject: perf sample: Fix the wrong format specifier X-Git-Tag: v6.19-rc1~61^2~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38367a22abba12b9ecd66536ff62274f0afbcf6f;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Mike Leach Signed-off-by: Namhyung Kim --- diff --git a/tools/perf/util/cs-etm.c b/tools/perf/util/cs-etm.c index 62812bef1edfe..25d56e0f1c078 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';