use varargs macro to make -DDDEBUG compile

This commit is contained in:
pooka 2008-11-21 07:42:30 +00:00
parent b5321c4efc
commit c02ede9188
1 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfsd.c,v 1.54 2008/07/21 13:36:59 lukem Exp $ */ /* $NetBSD: nfsd.c,v 1.55 2008/11/21 07:42:30 pooka Exp $ */
/* /*
* Copyright (c) 1989, 1993, 1994 * Copyright (c) 1989, 1993, 1994
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\
#if 0 #if 0
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95"; static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
#else #else
__RCSID("$NetBSD: nfsd.c,v 1.54 2008/07/21 13:36:59 lukem Exp $"); __RCSID("$NetBSD: nfsd.c,v 1.55 2008/11/21 07:42:30 pooka Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -81,7 +81,11 @@ __RCSID("$NetBSD: nfsd.c,v 1.54 2008/07/21 13:36:59 lukem Exp $");
/* Global defs */ /* Global defs */
#ifdef DEBUG #ifdef DEBUG
#define syslog(e, s) fprintf(stderr,(s)) #define syslog(e, s, args...) \
do { \
fprintf(stderr,(s), ## args); \
fprintf(stderr, "\n"); \
} while (/*CONSTCOND*/0)
int debug = 1; int debug = 1;
#else #else
int debug = 0; int debug = 0;