Skip to content

Commit

Permalink
mtd: parsers: trx: fix pr_err format for printing offset
Browse files Browse the repository at this point in the history
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: Rafał Miłecki <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
  • Loading branch information
Rafał Miłecki authored and computersforpeace committed Jun 23, 2017
1 parent 6eab81e commit 58de51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/parsers/parser_trx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
(uint8_t *)&buf);
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);
goto out_default;
}
Expand Down

0 comments on commit 58de51c

Please sign in to comment.