diff --git a/sys/libkern/iconv.c b/sys/libkern/iconv.c index 8eafa281d88e..1cd7147d6c0f 100644 --- a/sys/libkern/iconv.c +++ b/sys/libkern/iconv.c @@ -469,7 +469,9 @@ int iconv_lookupcp(char **cpp, const char *s) { if (cpp == NULL) { - ICDEBUG("warning a NULL list passed\n"); + ICDEBUG("warning a NULL list passed\n", ""); /* XXX ISO variadic macros cannot + leave out the + variadic args */ return ENOENT; } for (; *cpp; cpp++) diff --git a/sys/sys/iconv.h b/sys/sys/iconv.h index 0f20129a80f4..affcc52e2eba 100644 --- a/sys/sys/iconv.h +++ b/sys/sys/iconv.h @@ -146,9 +146,9 @@ int iconv_converter_donestub(struct iconv_converter_class *dp); int iconv_converter_handler(module_t mod, int type, void *data); #ifdef ICONV_DEBUG -#define ICDEBUG(format, args...) printf("%s: "format, __func__ ,## args) +#define ICDEBUG(format, ...) printf("%s: "format, __func__ , __VA_ARGS__) #else -#define ICDEBUG(format, args...) +#define ICDEBUG(format, ...) #endif #endif /* !_KERNEL */