Skip to content

Commit c474521

Browse files
mwallePratyush Yadav
authored andcommitted
mtd: spi-nor: debugfs: fix format specifier
The intention was to print the JEDEC ID in the following format: nn nn nn In this case format specifier has to be "%*ph". Fix it. Fixes: 0257be7 ("mtd: spi-nor: expose internal parameters via debugfs") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Pratyush Yadav <p.yadav@ti.com> Link: https://lore.kernel.org/r/20220512112027.3771734-1-michael@walle.cc
1 parent cdbc44d commit c474521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/spi-nor/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int spi_nor_params_show(struct seq_file *s, void *data)
8181
int i;
8282

8383
seq_printf(s, "name\t\t%s\n", info->name);
84-
seq_printf(s, "id\t\t%*phn\n", info->id_len, info->id);
84+
seq_printf(s, "id\t\t%*ph\n", info->id_len, info->id);
8585
string_get_size(params->size, 1, STRING_UNITS_2, buf, sizeof(buf));
8686
seq_printf(s, "size\t\t%s\n", buf);
8787
seq_printf(s, "write size\t%u\n", params->writesize);

0 commit comments

Comments
 (0)