mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-03 07:13:51 +00:00
hci_dump: disable hci_dump for ports and tests
This commit is contained in:
parent
128d6c999a
commit
e51d966a3d
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user