diff options
author | Nishanth Menon <nm@ti.com> | 2016-03-15 16:15:32 -0500 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-04-14 11:51:39 -0600 |
commit | 2ae67aec5e283e6ccdc43b9432a6077c8af2c27e (patch) | |
tree | 2433d3aa2f507ad3aebf130c4f755f4ef7d4742f /disk/part.c | |
parent | c3ab985362188ba24847be2dc61dcdcf7b4ce049 (diff) | |
download | u-boot-imx-2ae67aec5e283e6ccdc43b9432a6077c8af2c27e.zip u-boot-imx-2ae67aec5e283e6ccdc43b9432a6077c8af2c27e.tar.gz u-boot-imx-2ae67aec5e283e6ccdc43b9432a6077c8af2c27e.tar.bz2 |
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: Nishanth Menon <nm@ti.com>
Diffstat (limited to 'disk/part.c')
-rw-r--r-- | disk/part.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/disk/part.c b/disk/part.c index 0aff954..543cab8 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) { |