]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: part: fix missing driver name in debug print
authorNishanth Menon <nm@ti.com>
Tue, 15 Mar 2016 21:15:32 +0000 (16:15 -0500)
committerSimon Glass <sjg@chromium.org>
Thu, 14 Apr 2016 17:51:39 +0000 (11:51 -0600)
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

index 0aff9548c2007152d8c5144f73b4fa49401162ed..543cab8103204e0bc8fcba57e8b1b0474b4fe1bd 100644 (file)
@@ -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) {