[PATCH 1/4] misc: k3_fuse: Fix printing of error codes
Anshul Dalal
anshuld at ti.com
Thu Feb 26 06:48:12 CET 2026
From: Vignesh Raghavendra <vigneshr at ti.com>
Use signed int format to print error codes so that its more readable
Fixes: ed5f2e5bed91 ("drivers: k3_fuse: Add fuse sub-system func calls")
Signed-off-by: Vignesh Raghavendra <vigneshr at ti.com>
Signed-off-by: Anshul Dalal <anshuld at ti.com>
---
drivers/misc/k3_fuse.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/misc/k3_fuse.c b/drivers/misc/k3_fuse.c
index 4a8ff1f2523..cefdedaf411 100644
--- a/drivers/misc/k3_fuse.c
+++ b/drivers/misc/k3_fuse.c
@@ -28,7 +28,7 @@ int fuse_read(u32 bank, u32 word, u32 *val)
*val = res.a1;
if (res.a0 != 0)
- printf("SMC call failed: Error code %lu\n", res.a0);
+ printf("SMC call failed: Error code %ld\n", res.a0);
return res.a0;
}
@@ -53,7 +53,7 @@ int fuse_prog(u32 bank, u32 word, u32 val)
val, mask, 0, 0, 0, 0, &res);
if (res.a0 != 0)
- printf("SMC call failed: Error code %lu\n", res.a0);
+ printf("SMC call failed: Error code %ld\n", res.a0);
return res.a0;
}
@@ -72,7 +72,7 @@ int fuse_writebuff(ulong addr)
0, 0, 0, 0, 0, 0, &res);
if (res.a0 != 0)
- printf("SMC call failed: Error code %lu\n", res.a0);
+ printf("SMC call failed: Error code %ld\n", res.a0);
return res.a0;
}
--
2.52.0
More information about the U-Boot
mailing list