summaryrefslogtreecommitdiff
path: root/archiver/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'archiver/util.h')
-rw-r--r--archiver/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/archiver/util.h b/archiver/util.h
index e3f61d937..444feaa0b 100644
--- a/archiver/util.h
+++ b/archiver/util.h
@@ -27,6 +27,14 @@
#include <time.h>
#include <glib.h>
+#ifdef __GNUC__
+# define DEBUG_MSG(str, args...) \
+ g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "(%d:%s) " str, \
+ getpid (), __FUNCTION__ , ## args)
+#else
+# define DEBUG_MSG(str, args...)
+#endif
+
gboolean extract_number (char **str, int *number, int digits);
struct tm *parse_date (char *str);