Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pckbport Move two probe-time aprint_errors to debug ...



details:   https://anonhg.NetBSD.org/src/rev/4a1f9a923adc
branches:  trunk
changeset: 323209:4a1f9a923adc
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Jun 03 15:02:56 2018 +0000

description:
Move two probe-time aprint_errors to debug and verbose level instead.

These two are regularly happening within qemu, and would muddle up the
aprint error counter otherwise.

diffstat:

 sys/dev/pckbport/alps.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 2edc1dbce43c -r 4a1f9a923adc sys/dev/pckbport/alps.c
--- a/sys/dev/pckbport/alps.c   Sun Jun 03 14:56:52 2018 +0000
+++ b/sys/dev/pckbport/alps.c   Sun Jun 03 15:02:56 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: alps.c,v 1.4 2017/08/16 21:18:58 nat Exp $ */
+/* $NetBSD: alps.c,v 1.5 2018/06/03 15:02:56 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2017 Ryo ONODERA <ryo%tetera.org@localhost>
@@ -30,7 +30,7 @@
 #include "opt_pms.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.4 2017/08/16 21:18:58 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: alps.c,v 1.5 2018/06/03 15:02:56 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -261,7 +261,7 @@
        return 0;
 
 err:
-       aprint_error_dev(psc->sc_dev, "Failed to get EC signature.\n");
+       aprint_debug_dev(psc->sc_dev, "Failed to get EC signature.\n");
        return res;
 }
 
@@ -752,7 +752,7 @@
        cmd[0] = PMS_RESET;
        (void)pckbport_poll_cmd(psc->sc_kbctag, psc->sc_kbcslot, cmd,
            1, 2, resp, 1);
-       aprint_error_dev(psc->sc_dev, "Failed to initialize an ALPS device.\n");
+       aprint_verbose_dev(psc->sc_dev, "Failed to initialize an ALPS device.\n");
        return res;
 }
 



Home | Main Index | Thread Index | Old Index