Source-Changes-HG archive

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

[src/trunk]: src/sys Add missing "\n" in log(9)



details:   https://anonhg.NetBSD.org/src/rev/3bd3b8535e71
branches:  trunk
changeset: 781711:3bd3b8535e71
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Sep 24 03:05:53 2012 +0000

description:
Add missing "\n" in log(9)

diffstat:

 sys/net/if_arcsubr.c    |   6 +++---
 sys/netinet/if_atm.c    |   8 ++++----
 sys/netinet/ip_mroute.c |  10 +++++-----
 3 files changed, 12 insertions(+), 12 deletions(-)

diffs (108 lines):

diff -r 4b89d197ccf7 -r 3bd3b8535e71 sys/net/if_arcsubr.c
--- a/sys/net/if_arcsubr.c      Sun Sep 23 22:31:38 2012 +0000
+++ b/sys/net/if_arcsubr.c      Mon Sep 24 03:05:53 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_arcsubr.c,v 1.63 2010/04/05 07:22:22 joerg Exp $    */
+/*     $NetBSD: if_arcsubr.c,v 1.64 2012/09/24 03:05:53 msaitoh Exp $  */
 
 /*
  * Copyright (c) 1994, 1995 Ignatios Souvatzis
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.63 2010/04/05 07:22:22 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arcsubr.c,v 1.64 2012/09/24 03:05:53 msaitoh Exp $");
 
 #include "opt_inet.h"
 
@@ -633,7 +633,7 @@
                ifp->if_flags |= IFF_MULTICAST|IFF_ALLMULTI;
        if (ifp->if_flags & IFF_LINK0 && arc_ipmtu > ARC_PHDS_MAXMTU)
                log(LOG_ERR,
-                   "%s: arc_ipmtu is %d, but must not exceed %d",
+                   "%s: arc_ipmtu is %d, but must not exceed %d\n",
                    ifp->if_xname, arc_ipmtu, ARC_PHDS_MAXMTU);
 
        ifp->if_output = arc_output;
diff -r 4b89d197ccf7 -r 3bd3b8535e71 sys/netinet/if_atm.c
--- a/sys/netinet/if_atm.c      Sun Sep 23 22:31:38 2012 +0000
+++ b/sys/netinet/if_atm.c      Mon Sep 24 03:05:53 2012 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: if_atm.c,v 1.32 2011/02/01 19:43:12 chuck Exp $       */
+/*      $NetBSD: if_atm.c,v 1.33 2012/09/24 03:05:53 msaitoh Exp $       */
 
 /*
  * Copyright (c) 1996 Charles D. Cranor and Washington University.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atm.c,v 1.32 2011/02/01 19:43:12 chuck Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atm.c,v 1.33 2012/09/24 03:05:53 msaitoh Exp $");
 
 #include "opt_inet.h"
 #include "opt_natm.h"
@@ -125,7 +125,7 @@
                }
                if (gate->sa_family != AF_LINK ||
                    gate->sa_len < sockaddr_dl_measure(namelen, addrlen)) {
-                       log(LOG_DEBUG, "atm_rtrequest: bad gateway value");
+                       log(LOG_DEBUG, "atm_rtrequest: bad gateway value\n");
                        break;
                }
 
@@ -228,7 +228,7 @@
        const struct sockaddr_dl *sdl;
 
        if (m->m_flags & (M_BCAST|M_MCAST)) {
-               log(LOG_INFO, "atmresolve: BCAST/MCAST packet detected/dumped");
+               log(LOG_INFO, "atmresolve: BCAST/MCAST packet detected/dumped\n");
                goto bad;
        }
 
diff -r 4b89d197ccf7 -r 3bd3b8535e71 sys/netinet/ip_mroute.c
--- a/sys/netinet/ip_mroute.c   Sun Sep 23 22:31:38 2012 +0000
+++ b/sys/netinet/ip_mroute.c   Mon Sep 24 03:05:53 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_mroute.c,v 1.125 2012/05/01 15:09:36 martin Exp $   */
+/*     $NetBSD: ip_mroute.c,v 1.126 2012/09/24 03:05:53 msaitoh Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -93,7 +93,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.125 2012/05/01 15:09:36 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.126 2012/09/24 03:05:53 msaitoh Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -3023,7 +3023,7 @@
     struct mbuf *mb_copy, *mm;
 
     if (mrtdebug & DEBUG_PIM)
-        log(LOG_DEBUG, "pim_register_send: ");
+        log(LOG_DEBUG, "pim_register_send: \n");
 
     mb_copy = pim_register_prepare(ip, m);
     if (mb_copy == NULL)
@@ -3143,7 +3143,7 @@
     if (socket_send(ip_mrouter, mb_first, &k_igmpsrc) < 0) {
        if (mrtdebug & DEBUG_PIM)
            log(LOG_WARNING,
-               "mcast: pim_register_send_upcall: ip_mrouter socket queue full");
+               "mcast: pim_register_send_upcall: ip_mrouter socket queue full\n");
        ++mrtstat.mrts_upq_sockfull;
        return ENOBUFS;
     }
@@ -3311,7 +3311,7 @@
     } else if (in_cksum(m, datalen)) {
        pimstat.pims_rcv_badsum++;
        if (mrtdebug & DEBUG_PIM)
-           log(LOG_DEBUG, "pim_input: invalid checksum");
+           log(LOG_DEBUG, "pim_input: invalid checksum\n");
        m_freem(m);
        return;
     }



Home | Main Index | Thread Index | Old Index