[PATCH 1/2] cmd: smccc: Print results in hex instead of dec
Michal Simek
michal.simek at amd.com
Wed Feb 15 09:45:21 CET 2023
Printing return value in HEX instead of DEC. Return values are 64 bit
values which impossible to decode in DEC. For example getting CHIP ID in
dec is quite long.
Signed-off-by: Michal Simek <michal.simek at amd.com>
---
cmd/smccc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/smccc.c b/cmd/smccc.c
index 0539a42587e2..fb80431ad1d9 100644
--- a/cmd/smccc.c
+++ b/cmd/smccc.c
@@ -43,7 +43,7 @@ static int do_call(struct cmd_tbl *cmdtp, int flag, int argc,
else
arm_smccc_hvc(fid, a1, a2, a3, a4, a5, a6, a7, &res);
- printf("Res: %ld %ld %ld %ld\n", res.a0, res.a1, res.a2, res.a3);
+ printf("Res: 0x%lx 0x%lx 0x%lx 0x%lx\n", res.a0, res.a1, res.a2, res.a3);
return 0;
}
--
2.36.1
More information about the U-Boot
mailing list