Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A39E84EF12D; Wed, 30 Sep 2026 19:39:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790797160; cv=none; b=nDQChEE7+RC+223vEi8OmBifeA/9raBCjCrOZ5o/E+grk3iO817xTRR+ZPftL9IqP/CSetHT6DMSs783Esxvvk8UYjniUvPOkxbSU+n+LzQ9lwyVp0OkFDfWGAUwhFWB7tEbwXh03AL4rsSxImT7iYLy85hOZuIWFr+4mX6iUt0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790797160; c=relaxed/simple; bh=h1t1cYlwK/9HP39C4eS8EejCPmxNnZEM0yftIbXs/Fg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WhvAGMWlT54slBrzwxzz9wXWvCAkhILHHnJgmm13H6JIjsQNL9QCfykRjuTI9q2BguuBWJCs0edVHWh/dGd934rHEzEYM2Nt4P5ru2kkGL7gKqZSDBD5nWTuwAL7tLsbIhDMQXgjoxJK+4DuWTtf8HXu86vQTTeTsXnGaAEeVPg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=C18/zKMM; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="C18/zKMM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED6EB1F00898; Wed, 30 Sep 2026 19:39:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790797159; bh=JuZA39Mh6ZS81i7raHrb9IZiVSAqQCPszaUdtaJXti0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=C18/zKMMVk5lztcUf2SjyI/s8DSlY68QK/3W4mlIri9AGjZvJ7ZIoqwJ4OpVL8+10 bBLKYQp6D4Cq7FgzzjmhU+zNdPmAIDdBYhXGexyoOFS22oFBR3zjKE0svax3bKO5yR icKnNnABbGrhrlujEGE1orm1+TF0X9irtOIakads= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Florian Eckert , Daniel Lezcano , Florian Fainelli Subject: [PATCH 6.6 1168/1193] tools/thermal/tmon: Fix compilation warning for wrong format Date: Wed, 30 Sep 2026 17:30:52 +0200 Message-ID: <20260930152500.194308517@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152434.301151190@linuxfoundation.org> References: <20260930152434.301151190@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Eckert commit 9da39ef332c417ce52732564c1c682a6e1209302 upstream. The following warnings are shown during compilation: tui.c: In function 'show_cooling_device': tui.c:216:40: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long unsigned int' [-Wformat=] 216 | "%02d %12.12s%6d %6d", | ~~^ | | | int | %6ld ...... 219 | ptdata.cdi[j].cur_state, | ~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int tui.c:216:44: warning: format '%d' expects argument of type 'int', but argument 8 has type 'long unsigned int' [-Wformat=] 216 | "%02d %12.12s%6d %6d", | ~~^ | | | int | %6ld ...... 220 | ptdata.cdi[j].max_state); | ~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int To fix this, the correct string format must be used for printing. Signed-off-by: Florian Eckert Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20231204141335.2798194-1-fe@dev.tdt.de Signed-off-by: Florian Fainelli Signed-off-by: Greg Kroah-Hartman --- tools/thermal/tmon/tui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/thermal/tmon/tui.c +++ b/tools/thermal/tmon/tui.c @@ -213,7 +213,7 @@ void show_cooling_device(void) * cooling device instances. skip unused idr. */ mvwprintw(cooling_device_window, j + 2, 1, - "%02d %12.12s%6d %6d", + "%02d %12.12s%6lu %6lu", ptdata.cdi[j].instance, ptdata.cdi[j].type, ptdata.cdi[j].cur_state,