Module Name:    src
Committed By:   tsutsui
Date:           Sat Jun 25 15:36:33 UTC 2022

Modified Files:
        src/sys/arch/atari/dev: kbd.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/atari/dev/kbd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/atari/dev/kbd.c
diff -u src/sys/arch/atari/dev/kbd.c:1.52 src/sys/arch/atari/dev/kbd.c:1.53
--- src/sys/arch/atari/dev/kbd.c:1.52	Sat Jun 25 15:10:26 2022
+++ src/sys/arch/atari/dev/kbd.c	Sat Jun 25 15:36:33 2022
@@ -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 @@ kbdattach(device_t parent, device_t self
 	/*
 	 * 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 @@ kbdattach(device_t parent, device_t self
 	 */
 	kbd_write_poll(kbd_icmd, sizeof(kbd_icmd));
 
-	printf("\n");
-
 	sc->sc_sicookie = softint_establish(SOFTINT_SERIAL, kbdsoft, NULL);
 
 #if NWSKBD > 0

Reply via email to