c program for create a macro for vprintf

C program for create a macro for vprintf


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

#define TRACE(x) dbg_printf x

void dbg_printf(int i, const char *fmt, ...)
{
    va_list args;
    va_start(args, fmt);
    vprintf(fmt, args);
    va_end(args);
}

int main()
{
    TRACE((10, "%s\n", "neel"));
    return 1;

}