//
// $Id: ipfw-log.c,v 1.1 2001/11/16 04:46:20 mavetju Exp $
//

#include <stdio.h>
#include <stdarg.h>

void	log(const char *fmt,...) {
#ifdef DEBUG
    va_list	ap;
    char	buf[1024];

    va_start(ap,fmt);
    vsprintf(buf,fmt,ap);
    va_end(ap);
    fprintf(stdout,"%s\n",buf);
#endif
}

void	debug(const char *fmt,...) {
#ifdef DEBUG
    va_list	ap;
    char	buf[1024];

    va_start(ap,fmt);
    vsprintf(buf,fmt,ap);
    va_end(ap);
    fprintf(stderr,"%s\n",buf);
#endif
}


syntax highlighted by Code2HTML, v. 0.9.1