summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 273e3ba0..8f716082 100644
--- a/src/log.c
+++ b/src/log.c
@@ -49,6 +49,24 @@ void ofono_info(const char *format, ...)
}
/**
+ * ofono_warn:
+ * @format: format string
+ * @Varargs: list of arguments
+ *
+ * Output warning information
+ */
+void ofono_warn(const char *format, ...)
+{
+ va_list ap;
+
+ va_start(ap, format);
+
+ vsyslog(LOG_WARNING, format, ap);
+
+ va_end(ap);
+}
+
+/**
* ofono_error:
* @format: format string
* @varargs: list of arguments