Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time remove stray debugging.
details: https://anonhg.NetBSD.org/src/rev/b9acd78e8d99
branches: trunk
changeset: 345264:b9acd78e8d99
user: christos <christos%NetBSD.org@localhost>
date: Sun May 15 20:37:48 2016 +0000
description:
remove stray debugging.
diffstat:
lib/libc/time/strptime.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
diffs (101 lines):
diff -r ce905eda4b52 -r b9acd78e8d99 lib/libc/time/strptime.c
--- a/lib/libc/time/strptime.c Sun May 15 20:36:42 2016 +0000
+++ b/lib/libc/time/strptime.c Sun May 15 20:37:48 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strptime.c,v 1.59 2016/05/15 20:36:42 christos Exp $ */
+/* $NetBSD: strptime.c,v 1.60 2016/05/15 20:37:48 christos Exp $ */
/*-
* Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strptime.c,v 1.59 2016/05/15 20:36:42 christos Exp $");
+__RCSID("$NetBSD: strptime.c,v 1.60 2016/05/15 20:37:48 christos Exp $");
#endif
#include "namespace.h"
@@ -476,7 +476,6 @@
* Note: J maybe used to denote non-nautical
* local time
*/
-printf("start parsing %s\n", bp);
if (mandatory)
while (isspace(*bp))
bp++;
@@ -518,7 +517,6 @@
if (delim(bp[1]) &&
((*bp >= 'A' && *bp <= 'I') ||
(*bp >= 'L' && *bp <= 'Y'))) {
-printf("military\n");
#ifdef TM_GMTOFF
/* Argh! No 'J'! */
if (*bp >= 'A' && *bp <= 'I')
@@ -538,7 +536,6 @@
}
/* 'J' is local time */
if (delim(bp[1]) && *bp == 'J') {
-printf("localtime\n");
#ifdef TM_GMTOFF
tm->TM_GMTOFF = -timezone;
#endif
@@ -556,10 +553,8 @@
if (delim(bp[0]) || delim(bp[1]) ||
delim(bp[2]) || !delim(bp[3]))
goto loadzone;
-printf("findstring\n");
ep = find_string(bp, &i, nast, NULL, 4);
if (ep != NULL) {
-printf("foundstring\n");
#ifdef TM_GMTOFF
tm->TM_GMTOFF = (-5 - i) * SECSPERHOUR;
#endif
@@ -569,10 +564,8 @@
bp = ep;
continue;
}
-printf("findstring2\n");
ep = find_string(bp, &i, nadt, NULL, 4);
if (ep != NULL) {
-printf("foundstring2\n");
tm->tm_isdst = 1;
#ifdef TM_GMTOFF
tm->TM_GMTOFF = (-4 - i) * SECSPERHOUR;
@@ -586,12 +579,10 @@
/*
* Our current timezone
*/
-printf("findstring3\n");
ep = find_string(bp, &i,
(const char * const *)tzname,
NULL, 2);
if (ep != NULL) {
-printf("foundstring3\n");
tm->tm_isdst = i;
#ifdef TM_GMTOFF
tm->TM_GMTOFF = -timezone;
@@ -603,7 +594,6 @@
continue;
}
loadzone:
-printf("loadzone\n");
/*
* The hard way, load the zone!
*/
@@ -624,7 +614,6 @@
}
break;
}
-printf("offs=%ld i=%d\n", (long)offs, i);
if (isdigit(*bp))
goto out;
switch (i) {
@@ -648,7 +637,6 @@
}
if (offs >= (HOURSPERDAY * SECSPERHOUR))
goto out;
-printf("done neg=%d offs=%ld\n", neg, (long)offs);
if (neg)
offs = -offs;
tm->tm_isdst = 0; /* XXX */
Home |
Main Index |
Thread Index |
Old Index