diff options
author | John Crispin <blogic@openwrt.org> | 2013-05-09 20:14:27 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-05-09 22:35:17 +0200 |
commit | 0c116c65f9bc4132fa0dfc99e875f57e9ee29af1 (patch) | |
tree | 9a2456d407d4501cc055ddcbba0703e415930fe8 /procd.h | |
parent | c28ba8c1947e1b31874bf5888742d1607ed7ae61 (diff) | |
download | unitd-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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__); \ |