From 5e7ca6d743b782969f4b4171cda2fb3d7b29068c Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Sat, 22 Aug 2015 17:34:51 +0200 Subject: [PATCH] quiet debug output --- ocat.c | 2 +- storage.c | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ocat.c b/ocat.c index 6d0ff7f..4f21bbb 100644 --- a/ocat.c +++ b/ocat.c @@ -221,7 +221,7 @@ int main(int argc, char **argv) if ((json = lister(username, device, s_lo, s_hi)) != NULL) { if ((arr = json_find_member(json, "results")) != NULL) { // get array json_foreach(f, arr) { - printf("%s\n", f->string_); + // fprintf(stderr, "%s\n", f->string_); locations(f->string_, obj, locs, s_lo, s_hi); } } diff --git a/storage.c b/storage.c index 31daa74..3e48cec 100644 --- a/storage.c +++ b/storage.c @@ -56,7 +56,7 @@ static int str_time_to_secs(char *s, time_t *secs) for (f = formats; f && *f; f++) { if (strptime(s, *f, &tm) != NULL) { success = 1; - fprintf(stderr, "str_time_to_secs succeeds with %s\n", *f); + // fprintf(stderr, "str_time_to_secs succeeds with %s\n", *f); break; } } @@ -71,10 +71,11 @@ static int str_time_to_secs(char *s, time_t *secs) * effect for the specified time. */ *secs = mktime(&tm); - printf("str_time_to_secs: %s becomes %04d-%02d-%02d %02d:%02d:%02d\n", - s, - tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, - tm.tm_hour, tm.tm_min, tm.tm_sec); + // fprintf(stderr, "str_time_to_secs: %s becomes %04d-%02d-%02d %02d:%02d:%02d\n", + // s, + // tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, + // tm.tm_hour, tm.tm_min, tm.tm_sec); + return (1); }