Skip to content

Commit

Permalink
ACPICA: Use %d for signed int print formatting instead of %u
Browse files Browse the repository at this point in the history
[ Upstream commit f8ddf49 ]

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>
  • Loading branch information
Colin Ian King authored and Greg Kroah-Hartman committed Nov 28, 2019
1 parent f4b7549 commit f1f9cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/acpi/tools/acpidump/apmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f1f9cb4

Please sign in to comment.