Source-Changes-HG archive

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

[src/trunk]: src/sbin/dmesg handle log being before timestamp...



details:   https://anonhg.NetBSD.org/src/rev/fb60b0345f37
branches:  trunk
changeset: 831475:fb60b0345f37
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 01 19:36:13 2018 +0000

description:
handle log being before timestamp...

diffstat:

 sbin/dmesg/dmesg.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 7ce43ede5279 -r fb60b0345f37 sbin/dmesg/dmesg.c
--- a/sbin/dmesg/dmesg.c        Sun Apr 01 19:31:16 2018 +0000
+++ b/sbin/dmesg/dmesg.c        Sun Apr 01 19:36:13 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dmesg.c,v 1.28 2018/04/01 19:31:16 christos Exp $      */
+/*     $NetBSD: dmesg.c,v 1.29 2018/04/01 19:36:13 christos Exp $      */
 /*-
  * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)dmesg.c    8.1 (Berkeley) 6/5/93";
 #else
-__RCSID("$NetBSD: dmesg.c,v 1.28 2018/04/01 19:31:16 christos Exp $");
+__RCSID("$NetBSD: dmesg.c,v 1.29 2018/04/01 19:36:13 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -198,7 +198,7 @@
                                log = 1;
                                continue;
                        case '>':
-                               log = newl = 0;
+                               log = 0;
                                continue;
                        case ']':
                                ADDC(ch);
@@ -237,6 +237,7 @@
                                        continue;
                                break;
                        }
+                       newl = 0;
                }
                if (ch == '\0')
                        continue;



Home | Main Index | Thread Index | Old Index