Commit 2ae67aec5e283e6ccdc43b9432a6077c8af2c27e
Committed by
Simon Glass
1 parent
c3ab985362
Exists in
v2017.01-smarct4x
and in
29 other branches
dm: part: fix missing driver name in debug print
Fixes the following warning with PART_DEBUG enabled: disk/part.c: In function ‘get_partition_info’: disk/part.c:372:3: warning: format ‘%s’ expects a matching ‘char *’ argument [-Wformat] Signed-off-by: Nishanth Menon <nm@ti.com>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
disk/part.c
... | ... | @@ -365,7 +365,8 @@ |
365 | 365 | return -EPROTONOSUPPORT; |
366 | 366 | } |
367 | 367 | if (!drv->get_info) { |
368 | - PRINTF("## Driver %s does not have the get_info() method\n"); | |
368 | + PRINTF("## Driver %s does not have the get_info() method\n", | |
369 | + drv->name); | |
369 | 370 | return -ENOSYS; |
370 | 371 | } |
371 | 372 | if (drv->get_info(dev_desc, part, info) == 0) { |