pastebin

Paste #82707: Untitled C paste by 1.202.76.195

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>

#define ELOG_INIT(ident, facility) openlog(ident, 0, facility)
#define ELOG_DEBUG(fmt, args...) syslog(LOG_DEBUG, "%s:%d:%s: "fmt, __FILE__, __LINE__, __func__, ##args)
/*#define fmt "%s"*/

int main(int argc, char *argv[])
{
    char *ident = "logtest";
    char *buf = "test buf";
    char *fmt = "%s";

    ELOG_INIT(ident, LOG_LOCAL6);

    ELOG_DEBUG(fmt, buf);

    return 0;
}

Private
Wrap long lines

2 + 4 =