projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a68088e
)
jail: add WARNING macro to log non critical warning message
author
Christian Marangi
<ansuelsmth@gmail.com>
Sun, 17 Jul 2022 11:09:47 +0000
(13:09 +0200)
committer
Christian Marangi
<ansuelsmth@gmail.com>
Sun, 17 Jul 2022 11:09:47 +0000
(13:09 +0200)
Add an additional WARNING macro to log non critical warning message.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
jail/log.h
patch
|
blob
|
history
diff --git
a/jail/log.h
b/jail/log.h
index 74a9f11f62b4218d002015603d00cb663a21a06b..a1091d49f2e72269b83d0f363bde72a1a6444bed 100644
(file)
--- a/
jail/log.h
+++ b/
jail/log.h
@@
-20,6
+20,10
@@
extern int debug;
#define INFO(fmt, ...) do { \
printf("jail: "fmt, ## __VA_ARGS__); \
} while (0)
+#define WARNING(fmt, ...) do { \
+ syslog(LOG_WARNING, "jail: "fmt, ## __VA_ARGS__); \
+ printf("jail: "fmt, ## __VA_ARGS__); \
+ } while (0)
#define ERROR(fmt, ...) do { \
syslog(LOG_ERR, "jail: "fmt, ## __VA_ARGS__); \
fprintf(stderr,"jail: "fmt, ## __VA_ARGS__); \