diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-30 14:46:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-30 14:46:36 +0000 |
commit | b57601ab81464c1539f14a763f35fccba751f6c1 (patch) | |
tree | f35a18a139b4dbcf690ac48308ada78ca46f664c /src/main/extractor_logging.h | |
parent | 9cb851a3d59e4287837d3a49699e60d0494af6a4 (diff) | |
download | libextractor-b57601ab81464c1539f14a763f35fccba751f6c1.tar.gz libextractor-b57601ab81464c1539f14a763f35fccba751f6c1.zip |
adding logging
Diffstat (limited to 'src/main/extractor_logging.h')
-rw-r--r-- | src/main/extractor_logging.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/extractor_logging.h b/src/main/extractor_logging.h index d8c7a54..54a6564 100644 --- a/src/main/extractor_logging.h +++ b/src/main/extractor_logging.h | |||
@@ -42,12 +42,19 @@ EXTRACTOR_log_ (const char *file, int line, const char *format, ...); | |||
42 | /** | 42 | /** |
43 | * Log a message. | 43 | * Log a message. |
44 | * | 44 | * |
45 | * @param fmt format string | 45 | * @param ... format string and arguments for fmt (printf-style) |
46 | * @param ... arguments for fmt (printf-style) | ||
47 | */ | 46 | */ |
48 | #define LOG(fmt, ...) EXTRACTOR_log_ (__FILE__, __LINE__, fmt, __VA_ARGS__) | 47 | #define LOG(...) EXTRACTOR_log_(__FILE__, __LINE__, __VA_ARGS__) |
48 | |||
49 | #else | 49 | #else |
50 | |||
51 | /** | ||
52 | * Log a message. | ||
53 | * | ||
54 | * @param ... format string and arguments for fmt (printf-style) | ||
55 | */ | ||
50 | #define LOG(...) | 56 | #define LOG(...) |
57 | |||
51 | #endif | 58 | #endif |
52 | 59 | ||
53 | 60 | ||