hci_dump: disable hci_dump for ports and tests

This commit is contained in:
Matthias Ringwald 2021-03-09 15:01:00 +01:00
parent 128d6c999a
commit e51d966a3d
10 changed files with 11 additions and 11 deletions

View File

@ -1405,11 +1405,11 @@ static void daemon_set_logging_enabled(int enabled){
default:
break;
}
hci_dump_open(string_buffer, BTSTACK_LOG_TYPE);
// hci_dump_open(string_buffer, BTSTACK_LOG_TYPE);
printf("Logging to %s\n", string_buffer);
}
if (!enabled && loggingEnabled){
hci_dump_close();
// hci_dump_close();
}
loggingEnabled = enabled;
}

View File

@ -246,7 +246,7 @@ int main(int argc, char * argv[]){
strcpy(pklg_path, "/tmp/hci_dump.pklg");
#endif
printf("Packet Log: %s\n", pklg_path);
hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// init HCI
#ifdef Q_OS_WIN

View File

@ -223,7 +223,7 @@ int main(int argc, char * argv[]){
#endif
strcat(pklg_path, ".pklg");
printf("Packet Log: %s\n", pklg_path);
hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// init HCI
#if 1

View File

@ -218,7 +218,7 @@ int main(int argc, const char * argv[]){
}
strcat(pklg_path, ".pklg");
printf("Packet Log: %s\n", pklg_path);
hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// init HCI
hci_init(hci_transport_usb_instance(), NULL);

View File

@ -327,6 +327,6 @@ TEST(LINK_KEY_DB, KeyReplacement){
}
int main (int argc, const char * argv[]){
hci_dump_open("tlv_test.pklg", HCI_DUMP_PACKETLOGGER);
// hci_dump_open("tlv_test.pklg", HCI_DUMP_PACKETLOGGER);
return CommandLineTestRunner::RunAllTests(argc, argv);
}

View File

@ -134,6 +134,6 @@ TEST(GAP_LE, ScanStartParam){
int main (int argc, const char * argv[]){
const char * log_path = "/tmp/test_scan.pklg";
printf("Log: %s\n", log_path);
hci_dump_open(log_path, HCI_DUMP_PACKETLOGGER);
// hci_dump_open(log_path, HCI_DUMP_PACKETLOGGER);
return CommandLineTestRunner::RunAllTests(argc, argv);
}

View File

@ -206,7 +206,7 @@ int main(int argc, const char * argv[]){
// use logger: format HCI_DUMP_PACKETLOGGER, HCI_DUMP_BLUEZ or HCI_DUMP_STDOUT
strcat(log_path, ".pklg");
printf("Packet Log: %s\n", log_path);
hci_dump_open(log_path, HCI_DUMP_PACKETLOGGER);
// hci_dump_open(log_path, HCI_DUMP_PACKETLOGGER);
// init HCI
const hci_transport_t * transport;

View File

@ -223,7 +223,7 @@ TEST_GROUP(SecurityManager){
sm_set_authentication_requirements( SM_AUTHREQ_BONDING );
sm_event_callback_registration.callback = &app_packet_handler;
sm_add_event_handler(&sm_event_callback_registration);
hci_dump_open("security_manager.pklg", HCI_DUMP_PACKETLOGGER);
// hci_dump_open("security_manager.pklg", HCI_DUMP_PACKETLOGGER);
}
};

View File

@ -218,7 +218,7 @@ int main(int argc, const char * argv[]){
}
strcat(pklg_path, ".pklg");
printf("Packet Log: %s\n", pklg_path);
hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
// init HCI
hci_init(hci_transport_usb_instance(), NULL);

View File

@ -185,6 +185,6 @@ TEST(BSTACK_TLV, TestWriteDeleteResetReadDeleteRead){
int main (int argc, const char * argv[]){
hci_dump_open("tlv_test.pklg", HCI_DUMP_PACKETLOGGER);
// hci_dump_open("tlv_test.pklg", HCI_DUMP_PACKETLOGGER);
return CommandLineTestRunner::RunAllTests(argc, argv);
}