Skip to contentSkip to conversation

fixup! vsprintf: retire strerrorp in favor of %pe

PATCH In review Ahmad Fatoum 2 participants 2 messages Sep 29, 2020 – Sep 30, 2020 Device tree

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! vsprintf: retire strerrorp in favor of %pe

The %pe patch set missed one instance of strerrorp that was added after the patch set was initially drafted. Fix it up.

---
 drivers/of/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/base.c +1 -1
index 6e2fb8b281e9..4e88af7b22e2 100644
@@ -1588,7 +1588,7 @@ void barebox_register_fdt(const void *dtb)
 
 	root = of_unflatten_dtb(dtb);
 	if (IS_ERR(root)) {
-		pr_err("Cannot unflatten dtb: %s\n", strerrorp(root));
+		pr_err("Cannot unflatten dtb: %pe\n", root);
 		return;
 	}
 
Signature · 7 lines
2.28.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 3 lines · Ahmad Fatoum

The %pe patch set missed one instance of strerrorp that was added after the patch set was initially drafted. Fix it up.

Squashed into "of: Add common device tree register function" instead.

Sascha

Quoted 29 lines
---
 drivers/of/base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/of/base.c +1 -1
index 6e2fb8b281e9..4e88af7b22e2 100644
@@ -1588,7 +1588,7 @@ void barebox_register_fdt(const void *dtb)
 
 	root = of_unflatten_dtb(dtb);
 	if (IS_ERR(root)) {
-		pr_err("Cannot unflatten dtb: %s\n", strerrorp(root));
+		pr_err("Cannot unflatten dtb: %pe\n", root);
 		return;
 	}
 
Signature · 7 lines
2.28.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox