summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-04-29 14:01:12 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-05-01 13:44:02 -0700
commit5696806501e827de1765de7ade0c05bc922c03d6 (patch)
tree12a18b98a8a58b35bfae2a97525f8b596c0bb015 /src/log.c
parenta21b6a6c903303b5ac50f393aa857f3c40b4a6b3 (diff)
downloadbluez-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.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/log.c b/src/log.c
index 11d26d508..a42c5941d 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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;