Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/dmesg Assert postts only if we really obtained a timest...
details: https://anonhg.NetBSD.org/src/rev/809dc022d404
branches: trunk
changeset: 368805:809dc022d404
user: rin <rin%NetBSD.org@localhost>
date: Sat Aug 06 10:22:22 2022 +0000
description:
Assert postts only if we really obtained a timestamp.
diffstat:
sbin/dmesg/dmesg.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r 7d5805b7d48e -r 809dc022d404 sbin/dmesg/dmesg.c
--- a/sbin/dmesg/dmesg.c Sat Aug 06 10:19:44 2022 +0000
+++ b/sbin/dmesg/dmesg.c Sat Aug 06 10:22:22 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dmesg.c,v 1.50 2022/08/06 10:19:44 rin Exp $ */
+/* $NetBSD: dmesg.c,v 1.51 2022/08/06 10:22:22 rin 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.50 2022/08/06 10:19:44 rin Exp $");
+__RCSID("$NetBSD: dmesg.c,v 1.51 2022/08/06 10:22:22 rin Exp $");
#endif
#endif /* not lint */
@@ -327,7 +327,6 @@
ADDC(ch);
ADDC('\0');
tstamp = 0;
- postts = true;
sec = fsec = 0;
switch (sscanf(tbuf, "[%jd.%ld]", &sec, &fsec)){
case 0:
@@ -344,6 +343,7 @@
/* Help */
continue;
}
+ postts = true;
for (nsec = fsec, j = 9 - scale; --j >= 0; )
nsec *= 10;
Home |
Main Index |
Thread Index |
Old Index