[U-Boot] [PATCH 3/5] efi_loader: avoid unnecessary pointer to long conversion

Heinrich Schuchardt xypron.glpk at gmx.de
Fri Dec 28 11:41:14 UTC 2018


debug() support supports %p to print pointers.

The debug message is unique. So there is not need to write a possibly
distracting line number.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 cmd/bootefi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index cb4d797e90..6931643066 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -390,8 +390,7 @@ static efi_status_t do_bootefi_exec(void *efi,
 		"{ro,boot}(blob)0000000000000000");
 
 	/* Call our payload! */
-	debug("%s:%d Jumping to 0x%lx\n", __func__, __LINE__,
-	      (long)image_obj->entry);
+	debug("%s: Jumping to 0x%p\n", __func__, image_obj->entry);
 
 	if (setjmp(&image_obj->exit_jmp)) {
 		ret = image_obj->exit_status;
-- 
2.19.2



More information about the U-Boot mailing list