提交 fa7ed706 编写于 作者: C Colin Ian King 提交者: Xie XiuQi

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: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NErik Schmauss <erik.schmauss@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 34220059
...@@ -106,7 +106,7 @@ static int ap_insert_action(char *argument, u32 to_be_done) ...@@ -106,7 +106,7 @@ static int ap_insert_action(char *argument, u32 to_be_done)
current_action++; current_action++;
if (current_action > AP_MAX_ACTIONS) { 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); AP_MAX_ACTIONS);
return (-1); return (-1);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册