]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ACPICA: Use %d for signed int print formatting instead of %u
authorColin Ian King <colin.king@canonical.com>
Mon, 5 Nov 2018 17:43:52 +0000 (09:43 -0800)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:05 +0000 (14:21 -0300)
BugLink: https://bugs.launchpad.net/bugs/1854975
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
tools/power/acpi/tools/acpidump/apmain.c

index 22c3b4ee1617b8c83cde926d5e9e9fb1f37ee882..9deb67226961a4d9f8ad8b0e099ccef0ba00523f 100644 (file)
@@ -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);
        }