Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/usbhidaction don't syslog() or errx() a \n.



details:   https://anonhg.NetBSD.org/src/rev/70534dc80a32
branches:  trunk
changeset: 570413:70534dc80a32
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Oct 10 01:16:17 2004 +0000

description:
don't syslog() or errx() a \n.

diffstat:

 usr.bin/usbhidaction/usbhidaction.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 12374892064f -r 70534dc80a32 usr.bin/usbhidaction/usbhidaction.c
--- a/usr.bin/usbhidaction/usbhidaction.c       Sat Oct 09 20:38:01 2004 +0000
+++ b/usr.bin/usbhidaction/usbhidaction.c       Sun Oct 10 01:16:17 2004 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: usbhidaction.c,v 1.11 2004/01/05 23:23:37 jmmv Exp $ */
+/*      $NetBSD: usbhidaction.c,v 1.12 2004/10/10 01:16:17 mrg Exp $ */
 
 /*
  * Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: usbhidaction.c,v 1.11 2004/01/05 23:23:37 jmmv Exp $");
+__RCSID("$NetBSD: usbhidaction.c,v 1.12 2004/10/10 01:16:17 mrg Exp $");
 #endif
 
 #include <stdio.h>
@@ -357,12 +357,12 @@
                }
                if (isdemon) {
                        syslog(LOG_WARNING, "config file `%s', line %d, HID "
-                              "item not found: `%s'\n", conf, line, name);
+                              "item not found: `%s'", conf, line, name);
                        freecommands(cmds);
                        return (NULL);
                } else {
                        errx(1, "config file `%s', line %d, HID item "
-                            "not found: `%s'\n", conf, line, name);
+                            "not found: `%s'", conf, line, name);
                }
 
        foundhid:



Home | Main Index | Thread Index | Old Index