From a217a2329c2bd9741db0729bf272b004bf6d53e5 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 17 Jul 2010 06:14:40 +0000 Subject: [PATCH] update ignore list. add timestamps to error dumper git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13152 67ed7778-7388-44ab-90cf-0a291f65f57c --- examples/lunkwill-canon-capture.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/lunkwill-canon-capture.c b/examples/lunkwill-canon-capture.c index 829c74ba7..c9045e33d 100644 --- a/examples/lunkwill-canon-capture.c +++ b/examples/lunkwill-canon-capture.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -24,7 +25,10 @@ static void errordumper(GPLogLevel level, const char *domain, const char *str, void *data) { - fprintf(stdout, "%s\n", str); + struct timeval tv; + + gettimeofday (&tv, NULL); + fprintf(stdout, "%d.%d: %s\n", tv.tv_sec, tv.tv_usec, str); } /* This seems to have no effect on where images go