mirror of
https://github.com/owntracks/recorder.git
synced 2026-04-09 00:36:50 +00:00
quiet debug output
This commit is contained in:
2
ocat.c
2
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);
|
||||
}
|
||||
}
|
||||
|
||||
11
storage.c
11
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user