add attributes to fatal, warn and delve_log

This commit is contained in:
Mark Andrews
2014-02-19 07:25:29 +11:00
parent 657f0f11ac
commit 43c1433ef2
+10
View File
@@ -191,6 +191,10 @@ usage(void) {
exit(1);
}
ISC_PLATFORM_NORETURN_PRE static void
fatal(const char *format, ...)
ISC_FORMAT_PRINTF(1, 2) ISC_PLATFORM_NORETURN_POST;
static void
fatal(const char *format, ...) {
va_list args;
@@ -204,6 +208,9 @@ fatal(const char *format, ...) {
exit(1);
}
static void
warn(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
static void
warn(const char *format, ...) {
va_list args;
@@ -228,6 +235,9 @@ static isc_logmodule_t modules[] = {
{ NULL, 0 }
};
static void
delve_log(int level, const char *fmt, ...) ISC_FORMAT_PRINTF(2, 3);
static void
delve_log(int level, const char *fmt, ...) {
va_list ap;