Commit 43c1433e authored by Mark Andrews's avatar Mark Andrews
Browse files

add attributes to fatal, warn and delve_log

parent 657f0f11
...@@ -191,6 +191,10 @@ usage(void) { ...@@ -191,6 +191,10 @@ usage(void) {
exit(1); exit(1);
} }
ISC_PLATFORM_NORETURN_PRE static void
fatal(const char *format, ...)
ISC_FORMAT_PRINTF(1, 2) ISC_PLATFORM_NORETURN_POST;
static void static void
fatal(const char *format, ...) { fatal(const char *format, ...) {
va_list args; va_list args;
...@@ -204,6 +208,9 @@ fatal(const char *format, ...) { ...@@ -204,6 +208,9 @@ fatal(const char *format, ...) {
exit(1); exit(1);
} }
static void
warn(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
static void static void
warn(const char *format, ...) { warn(const char *format, ...) {
va_list args; va_list args;
...@@ -228,6 +235,9 @@ static isc_logmodule_t modules[] = { ...@@ -228,6 +235,9 @@ static isc_logmodule_t modules[] = {
{ NULL, 0 } { NULL, 0 }
}; };
static void
delve_log(int level, const char *fmt, ...) ISC_FORMAT_PRINTF(2, 3);
static void static void
delve_log(int level, const char *fmt, ...) { delve_log(int level, const char *fmt, ...) {
va_list ap; va_list ap;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment