Commit c4745219 authored by Michael Walle's avatar Michael Walle Committed by Pratyush Yadav

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: 0257be79 ("mtd: spi-nor: expose internal parameters via debugfs")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarPratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220512112027.3771734-1-michael@walle.cc
parent cdbc44db
...@@ -81,7 +81,7 @@ static int spi_nor_params_show(struct seq_file *s, void *data) ...@@ -81,7 +81,7 @@ static int spi_nor_params_show(struct seq_file *s, void *data)
int i; int i;
seq_printf(s, "name\t\t%s\n", info->name); seq_printf(s, "name\t\t%s\n", info->name);
seq_printf(s, "id\t\t%*phn\n", info->id_len, info->id); seq_printf(s, "id\t\t%*ph\n", info->id_len, info->id);
string_get_size(params->size, 1, STRING_UNITS_2, buf, sizeof(buf)); string_get_size(params->size, 1, STRING_UNITS_2, buf, sizeof(buf));
seq_printf(s, "size\t\t%s\n", buf); seq_printf(s, "size\t\t%s\n", buf);
seq_printf(s, "write size\t%u\n", params->writesize); seq_printf(s, "write size\t%u\n", params->writesize);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment