From: jsg Date: Fri, 30 Apr 2021 06:29:19 +0000 (+0000) Subject: fix newlines for devices attaching to cpu X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ae630881eacb5a508070fcfa77935ac94ed89264;p=openbsd fix newlines for devices attaching to cpu --- diff --git a/sys/arch/riscv64/dev/riscv_cpu_intc.c b/sys/arch/riscv64/dev/riscv_cpu_intc.c index 6a22c8cf34e..c0d7be67c39 100644 --- a/sys/arch/riscv64/dev/riscv_cpu_intc.c +++ b/sys/arch/riscv64/dev/riscv_cpu_intc.c @@ -77,6 +77,8 @@ riscv_intc_attach(struct device *parent, struct device *self, void *aux) /* hook the intr_handler */ riscv_set_intr_handler(riscv_intc_irq_handler); + printf("\n"); + intc_ic.ic_node = faa->fa_node; intc_ic.ic_cookie = &intc_ic; diff --git a/sys/arch/riscv64/riscv64/cpu.c b/sys/arch/riscv64/riscv64/cpu.c index 6792dbd741b..430887d6bd2 100644 --- a/sys/arch/riscv64/riscv64/cpu.c +++ b/sys/arch/riscv64/riscv64/cpu.c @@ -264,7 +264,7 @@ cpu_identify(struct cpu_info *ci) /* Print details for boot CPU */ if (cpu == 0) { - printf(": cpu%d: %s %s %s\n", cpu, + printf(": %s %s %s\n", cpu_desc[cpu].cpu_impl_name, cpu_desc[cpu].cpu_part_name, isa); @@ -374,7 +374,6 @@ cpu_attach(struct device *parent, struct device *dev, void *aux) * therefore, must attach timer before any node */ config_found_sm(dev, NULL, NULL, riscv_timer_match); - printf("\n"); /* * attach cpu's children node, so far there is only the @@ -386,7 +385,6 @@ cpu_attach(struct device *parent, struct device *dev, void *aux) fa_intc.fa_node = node; /* no specifying match func, will call cfdata's match func*/ config_found(dev, &fa_intc, NULL); - printf("\n"); } #ifdef MULTIPROCESSOR