diff options
Diffstat (limited to 'examples/lunkwill-canon-capture.c')
-rw-r--r-- | examples/lunkwill-canon-capture.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <stdlib.h> #include <sys/types.h> #include <sys/stat.h> +#include <sys/time.h> #include <fcntl.h> #include <stdio.h> #include <stdarg.h> @@ -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 |