Source-Changes-HG archive

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

[xsrc/trunk]: xsrc/external/mit/xorg-server/dist/hw/sun Avoid polluting conso...



details:   https://anonhg.NetBSD.org/xsrc/rev/1eb1132e95a2
branches:  trunk
changeset: 10657:1eb1132e95a2
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Mar 11 13:12:34 2021 +0000

description:
Avoid polluting console on non-fatal errors.

diffstat:

 external/mit/xorg-server/dist/hw/sun/sunKbd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r c4661931661f -r 1eb1132e95a2 external/mit/xorg-server/dist/hw/sun/sunKbd.c
--- a/external/mit/xorg-server/dist/hw/sun/sunKbd.c     Thu Mar 11 11:54:41 2021 +0000
+++ b/external/mit/xorg-server/dist/hw/sun/sunKbd.c     Thu Mar 11 13:12:34 2021 +0000
@@ -191,7 +191,7 @@
 #endif
     };
     if (ioctl (fd, KIOCSLED, (caddr_t)&led_tab[ctrl->leds & SUN_LED_MASK]) == -1)
-       ErrorF("Failed to set keyboard lights\n");
+       LogMessage(X_ERROR, "Failed to set keyboard lights\n");
 #endif
 }
 
@@ -218,13 +218,13 @@
 
     kbdCmd = KBD_CMD_BELL;
     if (ioctl (fd, KIOCCMD, &kbdCmd) == -1) {
-       ErrorF("Failed to activate bell\n");
+       LogMessage(X_ERROR, "Failed to activate bell\n");
        return;
     }
     if (duration) usleep (duration);
     kbdCmd = KBD_CMD_NOBELL;
     if (ioctl (fd, KIOCCMD, &kbdCmd) == -1)
-       ErrorF("Failed to deactivate bell\n");
+       LogMessage(X_ERROR, "Failed to deactivate bell\n");
 }
 
 static void
@@ -394,7 +394,7 @@
        pPriv->click = ctrl->click;
        kbdClickCmd = pPriv->click ? KBD_CMD_CLICK : KBD_CMD_NOCLICK;
        if (ioctl (pPriv->fd, KIOCCMD, &kbdClickCmd) == -1)
-           ErrorF("Failed to set keyclick\n");
+           LogMessage(X_ERROR, "Failed to set keyclick\n");
     }
     if ((pPriv->type == KB_SUN4) && (pPriv->leds != (ctrl->leds & SUN_LED_MASK)))
        DoLEDs(device, ctrl, pPriv);



Home | Main Index | Thread Index | Old Index