summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVignesh Raghavendra <[email protected]>2026-02-26 11:18:12 +0530
committerTom Rini <[email protected]>2026-03-13 14:58:27 -0600
commite98e9b1ec9be918c9c607a414e6121f3163adc49 (patch)
tree6f9f6ff22cd602bcc4e14c665fbec352f5c71cca
parent7995bf8dea2d5b3eb7fcb836636f4773924ec35d (diff)
misc: k3_fuse: Fix printing of error codes
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 <[email protected]> Signed-off-by: Anshul Dalal <[email protected]>
-rw-r--r--drivers/misc/k3_fuse.c6
1 files 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;
}