Skip to content

Commit

Permalink
dm: part: fix missing driver name in debug print
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nmenon authored and sjg20 committed Apr 14, 2016
1 parent c3ab985 commit 2ae67ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion disk/part.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ int part_get_info(struct blk_desc *dev_desc, int part,
return -EPROTONOSUPPORT;
}
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;
}
if (drv->get_info(dev_desc, part, info) == 0) {
Expand Down

0 comments on commit 2ae67ae

Please sign in to comment.