Diff between 84156dadb25ec0973752d34d84fc9ffb3c720988 and 8434b7c7726d226ea9d3247d55daefd6e070684a

Changed Files

File Additions Deletions Status
src/log.c +11 -0 modified
src/log.h +1 -0 modified

Full Patch

diff --git a/src/log.c b/src/log.c
index 4a50117..75a98a9 100644
--- a/src/log.c
+++ b/src/log.c
@@ -44,6 +44,17 @@ void info(const char *format, ...)
 	va_end(ap);
 }
 
+void warn(const char *format, ...)
+{
+	va_list ap;
+
+	va_start(ap, format);
+
+	vsyslog(LOG_WARNING, format, ap);
+
+	va_end(ap);
+}
+
 void error(const char *format, ...)
 {
 	va_list ap;
diff --git a/src/log.h b/src/log.h
index 51c52e6..3d34fa3 100644
--- a/src/log.h
+++ b/src/log.h
@@ -22,6 +22,7 @@
  */
 
 void info(const char *format, ...) __attribute__((format(printf, 1, 2)));
+void warn(const char *format, ...) __attribute__((format(printf, 1, 2)));
 void error(const char *format, ...) __attribute__((format(printf, 1, 2)));
 
 void btd_debug(const char *format, ...) __attribute__((format(printf, 1, 2)));