提交 58de51ca 编写于 作者: R Rafał Miłecki 提交者: Brian Norris

mtd: parsers: trx: fix pr_err format for printing offset

This fixes following warning:
include/linux/kern_levels.h:4:18: warning: format '%X' expects argument of type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
Signed-off-by: NRafał Miłecki <rafal@milecki.pl>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 6eab81e6
...@@ -39,7 +39,7 @@ static const char *parser_trx_data_part_name(struct mtd_info *master, ...@@ -39,7 +39,7 @@ static const char *parser_trx_data_part_name(struct mtd_info *master,
err = mtd_read(master, offset, sizeof(buf), &bytes_read, err = mtd_read(master, offset, sizeof(buf), &bytes_read,
(uint8_t *)&buf); (uint8_t *)&buf);
if (err && !mtd_is_bitflip(err)) { if (err && !mtd_is_bitflip(err)) {
pr_err("mtd_read error while parsing (offset: 0x%X): %d\n", pr_err("mtd_read error while parsing (offset: 0x%zX): %d\n",
offset, err); offset, err);
goto out_default; goto out_default;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册