From b8ae70b42a4c3ed31119eab6c514d92a6c8623cc Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 13 Apr 2017 15:55:57 +0200 Subject: [PATCH] hci_dump: fix crash on posix systems caused by logging --- src/hci_dump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hci_dump.c b/src/hci_dump.c index 623daef3d..6e5b4d708 100644 --- a/src/hci_dump.c +++ b/src/hci_dump.c @@ -290,6 +290,7 @@ void hci_dump_log_va_arg(int log_level, const char * format, va_list argptr){ if (dump_file >= 0){ int len = vsnprintf(log_message_buffer, sizeof(log_message_buffer), format, argptr); hci_dump_packet(LOG_MESSAGE_PACKET, 0, (uint8_t*) log_message_buffer, len); + return; } #endif