Skip to contentSkip to conversation

dm: part: fix missing driver name in debug print

PATCH New Nishanth Menon 2 participants 3 messages Mar 15, 2016 – Apr 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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]

---
 disk/part.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
disk/part.c +2 -1
index 2a460503922c..0caf760f5257 100644
@@ -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) {
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 dm: part: fix missing driver name in debug print

Quoted 8 lines · Nishanth Menon

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]

---
 disk/part.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
#2 lore raw

PATCH 1/1 dm: part: fix missing driver name in debug print

Quoted 11 lines · Simon Glass
Quoted 8 lines · Nishanth Menon

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]

---
 disk/part.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to u-boot-dm, thanks!