Module Name: src Committed By: christos Date: Sun Apr 1 19:36:13 UTC 2018
Modified Files: src/sbin/dmesg: dmesg.c Log Message: handle log being before timestamp... To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sbin/dmesg/dmesg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/dmesg/dmesg.c diff -u src/sbin/dmesg/dmesg.c:1.28 src/sbin/dmesg/dmesg.c:1.29 --- src/sbin/dmesg/dmesg.c:1.28 Sun Apr 1 15:31:16 2018 +++ src/sbin/dmesg/dmesg.c Sun Apr 1 15:36:13 2018 @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 19 #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 @@ main(int argc, char *argv[]) log = 1; continue; case '>': - log = newl = 0; + log = 0; continue; case ']': ADDC(ch); @@ -237,6 +237,7 @@ main(int argc, char *argv[]) continue; break; } + newl = 0; } if (ch == '\0') continue;