diff options
-rw-r--r-- | include/log.h | 2 | ||||
-rw-r--r-- | src/log.c | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h index 47e5ec88..84459d56 100644 --- a/include/log.h +++ b/include/log.h @@ -34,6 +34,8 @@ extern "C" { extern void ofono_info(const char *format, ...) __attribute__((format(printf, 1, 2))); +extern void ofono_warn(const char *format, ...) + __attribute__((format(printf, 1, 2))); extern void ofono_error(const char *format, ...) __attribute__((format(printf, 1, 2))); extern void ofono_debug(const char *format, ...) @@ -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 |