From 2ae67aec5e283e6ccdc43b9432a6077c8af2c27e Mon Sep 17 00:00:00 2001 From: Nishanth Menon Date: Tue, 15 Mar 2016 16:15:32 -0500 Subject: dm: part: fix missing driver name in debug print MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- disk/part.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'disk') diff --git a/disk/part.c b/disk/part.c index 0aff9548c2..543cab8103 100644 --- a/disk/part.c +++ b/disk/part.c @@ -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) { -- cgit v1.2.1