summaryrefslogtreecommitdiffstats
path: root/procd.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-05-09 20:14:27 +0200
committerJohn Crispin <blogic@openwrt.org>2013-05-09 22:35:17 +0200
commit0c116c65f9bc4132fa0dfc99e875f57e9ee29af1 (patch)
tree9a2456d407d4501cc055ddcbba0703e415930fe8 /procd.h
parentc28ba8c1947e1b31874bf5888742d1607ed7ae61 (diff)
downloadunitd-0c116c65f9bc4132fa0dfc99e875f57e9ee29af1.tar
unitd-0c116c65f9bc4132fa0dfc99e875f57e9ee29af1.zip
add a rcS helper
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'procd.h')
-rw-r--r--procd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/procd.h b/procd.h
index 8c2892d..7f6c7cb 100644
--- a/procd.h
+++ b/procd.h
@@ -31,6 +31,10 @@
fprintf(stderr, "procd: %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
} while (0)
+#define SYSLOG(p, fmt, ...) do { \
+ syslog(p, fmt, ## __VA_ARGS__); \
+ } while (0)
+
#define LOG(fmt, ...) do { \
syslog(LOG_INFO, fmt, ## __VA_ARGS__); \
fprintf(stderr, "procd: "fmt, ## __VA_ARGS__); \