add a rcS helper
[project/procd.git] / procd.h
diff --git a/procd.h b/procd.h
index 8c2892d..7f6c7cb 100644 (file)
--- a/procd.h
+++ b/procd.h
                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__); \