summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2010-07-17 06:14:40 +0000
committerMarcus Meissner <marcus@jet.franken.de>2010-07-17 06:14:40 +0000
commita217a2329c2bd9741db0729bf272b004bf6d53e5 (patch)
tree7cf0381b1c9be79d3ea5c891a5df23343d56eba8 /examples
parentf820e97692a8de65f1082234d2063d53495b3013 (diff)
downloadlibgphoto2-a217a2329c2bd9741db0729bf272b004bf6d53e5.tar.gz
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
Diffstat (limited to 'examples')
-rw-r--r--examples/lunkwill-canon-capture.c6
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