va_end(ap);
}
+void btd_log(uint16_t index, int priority, const char *format, ...)
+{
+ va_list ap;
+
+ va_start(ap, format);
+ vsyslog(priority, format, ap);
+ va_end(ap);
+
+ if (logging_fd < 0)
+ return;
+
+ va_start(ap, format);
+ logging_log(index, priority, format, ap);
+ va_end(ap);
+}
+
void btd_error(uint16_t index, const char *format, ...)
{
va_list ap;
void warn(const char *format, ...) __attribute__((format(printf, 1, 2)));
void info(const char *format, ...) __attribute__((format(printf, 1, 2)));
+void btd_log(uint16_t index, int priority, const char *format, ...)
+ __attribute__((format(printf, 3, 4)));
+
void btd_error(uint16_t index, const char *format, ...)
__attribute__((format(printf, 2, 3)));
void btd_warn(uint16_t index, const char *format, ...)