Message ID | 20231128145628.413414-3-apatel@ventanamicro.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | SBI debug console and few ISA extensions | expand |
diff --git a/riscv/fdt.c b/riscv/fdt.c index 9af71b5..b45f731 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",
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> --- riscv/fdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)