fix newlines for devices attaching to cpu
authorjsg <jsg@openbsd.org>
Fri, 30 Apr 2021 06:29:19 +0000 (06:29 +0000)
committerjsg <jsg@openbsd.org>
Fri, 30 Apr 2021 06:29:19 +0000 (06:29 +0000)
sys/arch/riscv64/dev/riscv_cpu_intc.c
sys/arch/riscv64/riscv64/cpu.c

index 6a22c8c..c0d7be6 100644 (file)
@@ -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;
 
index 6792dbd..430887d 100644 (file)
@@ -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