Commit 2ae67aec authored by Nishanth Menon's avatar Nishanth Menon Committed by Simon Glass
Browse files

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: default avatarNishanth Menon <nm@ti.com>
parent c3ab9853
...@@ -365,7 +365,8 @@ int part_get_info(struct blk_desc *dev_desc, int part, ...@@ -365,7 +365,8 @@ int part_get_info(struct blk_desc *dev_desc, int part,
return -EPROTONOSUPPORT; return -EPROTONOSUPPORT;
} }
if (!drv->get_info) { if (!drv->get_info) {
PRINTF("## Driver %s does not have the get_info() method\n"); PRINTF("## Driver %s does not have the get_info() method\n",
drv->name);
return -ENOSYS; return -ENOSYS;
} }
if (drv->get_info(dev_desc, part, info) == 0) { if (drv->get_info(dev_desc, part, info) == 0) {
......
Supports Markdown
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