Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/dev Use aprint_*(9) for device attach messages.



details:   https://anonhg.NetBSD.org/src/rev/9288a4682f6d
branches:  trunk
changeset: 368141:9288a4682f6d
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jun 25 15:36:33 2022 +0000

description:
Use aprint_*(9) for device attach messages.

diffstat:

 sys/arch/atari/dev/kbd.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r f6fca0af8311 -r 9288a4682f6d sys/arch/atari/dev/kbd.c
--- a/sys/arch/atari/dev/kbd.c  Sat Jun 25 15:10:26 2022 +0000
+++ b/sys/arch/atari/dev/kbd.c  Sat Jun 25 15:36:33 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbd.c,v 1.52 2022/06/25 15:10:26 tsutsui Exp $ */
+/*     $NetBSD: kbd.c,v 1.53 2022/06/25 15:36:33 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1995 Leo Weppelman
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.52 2022/06/25 15:10:26 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.53 2022/06/25 15:36:33 tsutsui Exp $");
 
 #include "mouse.h"
 #include "ite.h"
@@ -236,8 +236,9 @@
        /*
         * Now send the reset string, and read+ignore its response
         */
+       aprint_normal("\n");
        if (kbd_write_poll(kbd_rst, 2) == 0)
-               printf("kbd: error cannot reset keyboard\n");
+               aprint_error_dev(self, "error cannot reset keyboard\n");
        for (timeout = 1000; timeout > 0; timeout--) {
                if ((KBD->ac_cs & (A_IRQ | A_RXRDY)) != 0) {
                        timeout = KBD->ac_da;
@@ -250,8 +251,6 @@
         */
        kbd_write_poll(kbd_icmd, sizeof(kbd_icmd));
 
-       printf("\n");
-
        sc->sc_sicookie = softint_establish(SOFTINT_SERIAL, kbdsoft, NULL);
 
 #if NWSKBD > 0



Home | Main Index | Thread Index | Old Index