hci_dump: define HCI_DUMP_MAX_MESSAGE_LEN for use in POSIX implementation

This commit is contained in:
Matthias Ringwald 2021-06-25 18:28:32 +02:00
parent 9620d15fc7
commit eb0d557942
2 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,7 @@
#endif
static char time_string[40];
static char log_message_buffer[256];
static char log_message_buffer[HCI_DUMP_MAX_MESSAGE_LEN];
static void hci_dump_posix_stdout_timestamp(void){
struct tm* ptm;

View File

@ -65,6 +65,9 @@ extern "C" {
#define HCI_DUMP_HEADER_SIZE_BLUEZ 13
#define HCI_DUMP_HEADER_SIZE_BTSNOOP 24
// we expect that there's no log_x call that creates a longer message string without the time header
#define HCI_DUMP_MAX_MESSAGE_LEN 256
/* API_START */
typedef enum {