diff options
| author | J. Neuschäfer <j.ne@posteo.net> | 2024-12-11 23:25:27 +0100 |
|---|---|---|
| committer | Caleb Connolly <caleb.connolly@linaro.org> | 2025-01-22 16:43:54 +0100 |
| commit | 3db33a6fd69078c5b77b32fe7eaede4ec08a9471 (patch) | |
| tree | d369edda42543257eb39289ff85d40ff34818e98 /cmd | |
| parent | c38d5bad35078c9e6c38f1c84b366fddd75af302 (diff) | |
cmd: ufetch: Show CPU architecture under "CPU"
When looking at ufetch output it isn't immediately obvious which CPU
architecture the presented board has. This patch therefore adds the
CPU architecture string (for example "powerpc") to the "CPU:" line.
The new format is:
CPU: powerpc (1 cores, 1 in use)
Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20241211-ufetch-v2-3-2b5432ffaeb1@posteo.net
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/ufetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ufetch.c b/cmd/ufetch.c index 83cec0f6d5c..ed5a856c7ab 100644 --- a/cmd/ufetch.c +++ b/cmd/ufetch.c @@ -188,7 +188,7 @@ static int do_ufetch(struct cmd_tbl *cmdtp, int flag, int argc, if (ofnode_name_eq(np, "cpu")) n_cpus++; } - printf("CPU:" RESET " %d (1 in use)\n", n_cpus); + printf("CPU: " RESET CONFIG_SYS_ARCH " (%d cores, 1 in use)\n", n_cpus); break; case MEMORY: for (int j = 0; j < CONFIG_NR_DRAM_BANKS && gd->bd->bi_dram[j].size; j++) |
