mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-24 03:40:07 +00:00
hci_dump: fix crash on posix systems caused by logging
This commit is contained in:
parent
c692d77638
commit
b8ae70b42a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user