]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: debugfs: fix format specifier
authorMichael Walle <michael@walle.cc>
Thu, 12 May 2022 11:20:27 +0000 (13:20 +0200)
committerPratyush Yadav <p.yadav@ti.com>
Thu, 12 May 2022 12:26:44 +0000 (17:56 +0530)
commitb6374c6bb45804c10fb005f0919b9aaf9a739c7e
tree31703ca9a127807f93bffd7f1501d0c8a34fa118
parentb93d4e2e03d02eea54c9c6e052354b87ce6364d1
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: 34d243881272 ("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
drivers/mtd/spi-nor/debugfs.c