diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-11-05 09:43:52 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 09:17:29 +0100 |
commit | 1d6a0dd6aa535e3c5d9d840e3d0cff55cefabaa8 (patch) | |
tree | 1eddf7409f10ef58cbaea6613c3db1219abac34d /tools | |
parent | d15b8b691725a432130358d198e909ccb48b403b (diff) | |
download | linux-stable-1d6a0dd6aa535e3c5d9d840e3d0cff55cefabaa8.tar.gz linux-stable-1d6a0dd6aa535e3c5d9d840e3d0cff55cefabaa8.tar.bz2 linux-stable-1d6a0dd6aa535e3c5d9d840e3d0cff55cefabaa8.zip |
ACPICA: Use %d for signed int print formatting instead of %u
[ Upstream commit f8ddf49b420112e28bdd23d7ad52d7991a0ccbe3 ]
Fix warnings found using static analysis with cppcheck, use %d printf
format specifier for signed ints rather than %u
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/acpi/tools/acpidump/apmain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/acpi/tools/acpidump/apmain.c b/tools/power/acpi/tools/acpidump/apmain.c index db213171f8d9..2d9b94b631cb 100644 --- a/tools/power/acpi/tools/acpidump/apmain.c +++ b/tools/power/acpi/tools/acpidump/apmain.c @@ -106,7 +106,7 @@ static int ap_insert_action(char *argument, u32 to_be_done) current_action++; if (current_action > AP_MAX_ACTIONS) { - fprintf(stderr, "Too many table options (max %u)\n", + fprintf(stderr, "Too many table options (max %d)\n", AP_MAX_ACTIONS); return (-1); } |