Code Review
/
src
/
drm-lease-manager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
log: Add line number to debug log output
[src/drm-lease-manager.git]
/
common
/
log.h
diff --git
a/common/log.h
b/common/log.h
index
cd0c0e3
..
ed3b2db
100644
(file)
--- a/
common/log.h
+++ b/
common/log.h
@@
-19,8
+19,9
@@
#include <stdbool.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdio.h>
-#define DEBUG_LOG(FMT, ...) \
- dlm_log_print(true, stdout, "DEBUG: %s: " FMT, __func__, ##__VA_ARGS__)
+#define DEBUG_LOG(FMT, ...) \
+ dlm_log_print(true, stdout, "DEBUG: %s: line %d: " FMT, __func__, \
+ __LINE__, ##__VA_ARGS__)
#define INFO_LOG(FMT, ...) \
dlm_log_print(false, stdout, "INFO: " FMT, ##__VA_ARGS__)
#define WARN_LOG(FMT, ...) \
#define INFO_LOG(FMT, ...) \
dlm_log_print(false, stdout, "INFO: " FMT, ##__VA_ARGS__)
#define WARN_LOG(FMT, ...) \