Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add newline character to logname change warning.



details:   https://anonhg.NetBSD.org/src/rev/25d82713db44
branches:  trunk
changeset: 543178:25d82713db44
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Feb 18 19:26:23 2003 +0000

description:
Add newline character to logname change warning.
Noted missing by Sean Davis on tech-kern.

diffstat:

 sys/kern/kern_prot.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 30b82b3a221b -r 25d82713db44 sys/kern/kern_prot.c
--- a/sys/kern/kern_prot.c      Tue Feb 18 19:21:33 2003 +0000
+++ b/sys/kern/kern_prot.c      Tue Feb 18 19:26:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_prot.c,v 1.73 2003/02/18 08:37:41 dsl Exp $       */
+/*     $NetBSD: kern_prot.c,v 1.74 2003/02/18 19:26:23 wiz Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_prot.c,v 1.73 2003/02/18 08:37:41 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_prot.c,v 1.74 2003/02/18 19:26:23 wiz Exp $");
 
 #include "opt_compat_43.h"
 
@@ -730,8 +730,9 @@
 
        if (s->s_flags & S_LOGIN_SET && p->p_pid != s->s_sid &&
            strncmp(newname, s->s_login, sizeof s->s_login) != 0)
-               log(LOG_WARNING, "%s (pid %d) changing logname from %.*s to %s",
-                       p->p_comm, p->p_pid, (int)sizeof s->s_login, s->s_login, newname);
+               log(LOG_WARNING, "%s (pid %d) changing logname from "
+                   "%.*s to %s\n", p->p_comm, p->p_pid,
+                   (int)sizeof s->s_login, s->s_login, newname);
        s->s_flags |= S_LOGIN_SET;
        strncpy(s->s_login, newname, sizeof s->s_login);
        return 0;



Home | Main Index | Thread Index | Old Index