summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-11-05 09:43:52 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-01 09:14:11 +0100
commit1939580da1f592c7ba8122b02c6d6532ed64452e (patch)
tree804d13fade889f8bfeefb34e1dbf72046b6e89f7 /tools
parent2271c9500434af2a26b2c9eadeb3c0b075409fb5 (diff)
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.c2
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 943b6b614683..bed0794e3295 100644
--- a/tools/power/acpi/tools/acpidump/apmain.c
+++ b/tools/power/acpi/tools/acpidump/apmain.c
@@ -139,7 +139,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);
}