preload-seccomp: Use proper log level for error messages
[project/procd.git] / jail / seccomp.h
index 603281297234813be3f6e7325c982bdf492ae46e..24c1dd7d3363cc475a21815c0324bedcaf547c7a 100644 (file)
        syslog(LOG_INFO,"preload-seccomp: "fmt, ## __VA_ARGS__); \
        fprintf(stderr,"preload-seccomp: "fmt, ## __VA_ARGS__); \
        } while (0)
+#define ERROR(fmt, ...) do { \
+       syslog(LOG_ERR,"preload-seccomp: "fmt, ## __VA_ARGS__); \
+       fprintf(stderr,"preload-seccomp: "fmt, ## __VA_ARGS__); \
+       } while (0)
 
 int install_syscall_filter(const char *argv, const char *file);