diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-04-29 14:01:12 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-05-01 13:44:02 -0700 |
commit | 5696806501e827de1765de7ade0c05bc922c03d6 (patch) | |
tree | 12a18b98a8a58b35bfae2a97525f8b596c0bb015 /src/log.c | |
parent | a21b6a6c903303b5ac50f393aa857f3c40b4a6b3 (diff) | |
download | bluez-5696806501e827de1765de7ade0c05bc922c03d6.tar.gz |
log: Make error and warn log file and function information
This makes it a lot simpler to find out where errors/warnings come from
and also remove the possibility of clashes when having multiple places
where the message would be exactly the same.
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 26 |
1 files changed, 0 insertions, 26 deletions
@@ -53,32 +53,6 @@ static void monitor_log(uint16_t index, int priority, bt_log_vprintf(index, LOG_IDENT, priority, format, ap); } -void error(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - vsyslog(LOG_ERR, format, ap); - va_end(ap); - - va_start(ap, format); - monitor_log(HCI_DEV_NONE, LOG_ERR, format, ap); - va_end(ap); -} - -void warn(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - vsyslog(LOG_WARNING, format, ap); - va_end(ap); - - va_start(ap, format); - monitor_log(HCI_DEV_NONE, LOG_WARNING, format, ap); - va_end(ap); -} - void info(const char *format, ...) { va_list ap; |