Rename global 'log' to 'slilog' to avoid conflict with gcc built-in
log() function.
/* Each line is sent separately */
while ((nlp=strchr(buff,'\n'))) {
*nlp=0;
/* Each line is sent separately */
while ((nlp=strchr(buff,'\n'))) {
*nlp=0;
- log(system_log,class,buff);
+ slilog(system_log,class,buff);
memmove(buff,nlp+1,strlen(nlp+1)+1);
}
} else {
memmove(buff,nlp+1,strlen(nlp+1)+1);
}
} else {
log_vmsg_fn *vlog;
};
/* (convenience function, defined in util.c) */
log_vmsg_fn *vlog;
};
/* (convenience function, defined in util.c) */
-extern void log(struct log_if *lf, int class, const char *message, ...)
+extern void slilog(struct log_if *lf, int class, const char *message, ...)
FORMAT(printf,3,4);
/* SITE interface */
FORMAT(printf,3,4);
/* SITE interface */
uint32_t msgtype=ntohl(*(uint32_t *)(buf->start+8));
if (st->log_events & LOG_DUMP)
uint32_t msgtype=ntohl(*(uint32_t *)(buf->start+8));
if (st->log_events & LOG_DUMP)
- log(st->log,M_DEBUG,"%s: %s: %08x<-%08x: %08x:",
- st->tunname,incoming?"incoming":"outgoing",
- dest,source,msgtype);
+ slilog(st->log,M_DEBUG,"%s: %s: %08x<-%08x: %08x:",
+ st->tunname,incoming?"incoming":"outgoing",
+ dest,source,msgtype);
}
static uint32_t site_status(void *st)
}
static uint32_t site_status(void *st)
-void log(struct log_if *lf, int priority, const char *message, ...)
+void slilog(struct log_if *lf, int priority, const char *message, ...)