diff mbox

dm: part: fix missing driver name in debug print

Message ID 1458076532-24564-1-git-send-email-nm@ti.com
State Accepted
Commit 2ae67aec5e283e6ccdc43b9432a6077c8af2c27e
Headers show

Commit Message

Nishanth Menon March 15, 2016, 9:15 p.m. UTC
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>
---
 disk/part.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/disk/part.c b/disk/part.c
index 2a460503922c..0caf760f5257 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -369,7 +369,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) {