diff options
author | Anup Patel <apatel@ventanamicro.com> | 2023-11-28 20:26:20 +0530 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-02-09 15:45:21 +0000 |
commit | fcb076756ab2dae13684e89d3fc9ce551c3e2d38 (patch) | |
tree | abed52df6415357f2e285b012cb8cc0e08736e1b | |
parent | 92ef2dcd2c095420b73e04a1cabbddf8e246834d (diff) | |
download | kvmtool-fcb076756ab2dae13684e89d3fc9ce551c3e2d38.tar.gz |
riscv: Improve warning in generate_cpu_nodes()
Let's print name of the ISA extension in warning if generate_cpu_nodes()
drops the ISA extension from generated ISA string due to lack of space.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20231128145628.413414-3-apatel@ventanamicro.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | riscv/fdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/riscv/fdt.c b/riscv/fdt.c index 9af71b57..b45f7312 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -108,7 +108,8 @@ static void generate_cpu_nodes(void *fdt, struct kvm *kvm) } if ((strlen(isa_info_arr[i].name) + pos + 1) >= CPU_ISA_MAX_LEN) { - pr_warning("Insufficient space to append ISA exension\n"); + pr_warning("Insufficient space to append ISA exension %s\n", + isa_info_arr[i].name); break; } pos += snprintf(cpu_isa + pos, CPU_ISA_MAX_LEN, "_%s", |