X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Flog.c;h=6018b54f41ce7efdd23aaf408685fb4188a54968;hb=de6a2cf11673ad8109b986e7cf24f626ad80df22;hp=2de7037c5c7af67d313aa786925ae41ad79edc8a;hpb=ff32cd5473f5c2251dc199a1d48a0b712fd8b3cd;p=psensor.git diff --git a/src/lib/log.c b/src/lib/log.c index 2de7037..6018b54 100644 --- a/src/lib/log.c +++ b/src/lib/log.c @@ -101,3 +101,12 @@ void log_printf(int lvl, const char *fmt, ...) fprintf(stdf, "[%ld] %s %s\n", tv.tv_sec, lvl_str, buffer); } } + +void log_debug(const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + log_printf(LOG_ERR, fmt, ap); + va_end(ap); +}