summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Kondratiev <[email protected]>2026-02-23 16:54:40 +0200
committerAnup Patel <[email protected]>2026-02-25 18:49:03 +0530
commite58d5287020a4a474a6d04c7bcab800825d1a294 (patch)
treee228c6401c15b15751a3d62869778bbfda81b5fc
parent9656943bd3a2cad9418465c2a168f907ea52189b (diff)
lib: sbi: print hartid in hex
Hartid is better represented by hex number since it is likely a combination of bits representing various elements in the platform hierarchy Signed-off-by: Vladimir Kondratiev <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
-rw-r--r--lib/sbi/sbi_domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sbi/sbi_domain.c b/lib/sbi/sbi_domain.c
index 4f458ac0..7030848d 100644
--- a/lib/sbi/sbi_domain.c
+++ b/lib/sbi/sbi_domain.c
@@ -541,7 +541,7 @@ void sbi_domain_dump(const struct sbi_domain *dom, const char *suffix)
sbi_printf("Domain%d HARTs %s: ", dom->index, suffix);
sbi_hartmask_for_each_hartindex(i, dom->possible_harts) {
j = sbi_hartindex_to_hartid(i);
- sbi_printf("%s%d%s", (k++) ? "," : "",
+ sbi_printf("%s0x%x%s", (k++) ? "," : "",
j, sbi_domain_is_assigned_hart(dom, i) ? "*" : "");
}
sbi_printf("\n");