#define PARSE_CHECK(expr, error, ...) \
do { \
if (!(expr)) { \
- syslog(LOG_ERR, error, ##__VA_ARGS__); \
+ err(error, ##__VA_ARGS__); \
return false; \
} \
} while (0)
break;
default:
- syslog(LOG_WARNING, "unexpected key, skipped: %.*s", klen, k);
+ warn("unexpected key, skipped: %.*s", klen, k);
continue;
}
}