Macros | |
#define | __BTSTACK_FILE__ __FILE__ |
#define | BTSTACK_PRINTF(format,...) printf(format, ## __VA_ARGS__) |
#define | HCI_DUMP_LOG(log_level, format,...) hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__) |
#define | log_debug(...) __log_unused(__VA_ARGS__) |
#define | log_error(...) __log_unused(__VA_ARGS__) |
#define | log_info(...) __log_unused(__VA_ARGS__) |
Functions | |
static void | __log_unused (const char *format,...) |
void | log_debug_hexdump (const void *data, int size) |
Hexdump via log_debug *. More... | |
void | log_info_hexdump (const void *data, int size) |
Hexdump via log_info. More... | |
void | log_info_key (const char *name, sm_key_t key) |
Log Security Manager key via log_info. More... | |
#define __BTSTACK_FILE__ __FILE__ |
#define BTSTACK_PRINTF | ( | format, | |
... | |||
) | printf(format, ## __VA_ARGS__) |
#define HCI_DUMP_LOG | ( | log_level, | |
format, | |||
... | |||
) | hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__) |
#define log_debug | ( | ... | ) | __log_unused(__VA_ARGS__) |
Referenced by att_server_request_can_send_now_event(), btstack_run_loop_freertos_execute(), hci_initializing_event_handler(), hci_initializing_run(), hci_number_free_acl_slots_for_connection_type(), hci_send_acl_packet_fragments(), hci_transport_h5_process_frame(), hci_transport_link_send_ack_packet(), hci_transport_link_send_config(), hci_transport_link_send_config_response(), hci_transport_link_send_config_response_empty(), hci_transport_link_send_control(), hci_transport_link_send_queued_packet(), hci_transport_link_send_sleep(), hci_transport_link_send_sync(), hci_transport_link_send_sync_response(), hci_transport_link_send_wakeup(), hci_transport_link_send_woken(), hci_transport_slip_encode_chunk_and_send(), l2cap_emit_can_send_now(), l2cap_send_prepared_connectionless(), sm_key_distribution_all_received(), and sm_pdu_handler().
#define log_error | ( | ... | ) | __log_unused(__VA_ARGS__) |
Referenced by acl_handler(), att_db_util_assert_space(), att_register_service_handler(), btstack_chipset_atwilc3000_download_firmware(), btstack_memory_pool_free(), btstack_run_loop_add_data_source(), btstack_run_loop_assert(), btstack_run_loop_disable_data_source_callbacks(), btstack_run_loop_enable_data_source_callbacks(), btstack_run_loop_freertos_add_timer(), btstack_run_loop_freertos_execute_code_on_main_thread(), btstack_run_loop_init(), btstack_run_loop_remove_data_source(), btstack_slip_decoder_process(), btstack_slip_decoder_store_byte(), btstack_slip_encoder_get_byte(), event_handler(), gatt_client_run(), hal_uart_dma_send_block(), hal_uart_dma_set_baud(), hci_initializing_event_handler(), hci_number_free_acl_slots_for_connection_type(), hci_number_free_acl_slots_for_handle(), hci_power_control(), hci_power_control_on(), hci_power_control_wake(), hci_reserve_packet_buffer(), hci_send_acl_packet_buffer(), hci_send_cmd_packet(), hci_send_cmd_va_arg(), hci_transport_h4_block_read(), hci_transport_h4_init(), hci_transport_h5_init(), hci_transport_h5_send_packet(), l2cap_acl_classic_handler(), l2cap_acl_le_handler(), l2cap_create_signaling_internal(), l2cap_send_prepared_connectionless(), peripheral_mtu(), setup_long_characteristic_value_packet(), sm_event_packet_handler(), sm_pdu_handler(), and sm_set_authentication_requirements().
#define log_info | ( | ... | ) | __log_unused(__VA_ARGS__) |
Referenced by att_dump_attributes(), att_event_packet_handler(), att_handle_request(), att_packet_handler(), att_read_callback(), att_run_for_context(), att_write_callback(), atwilc3000_configure_uart(), atwilc3000_vendor_specific_reset(), atwilc3000_w4_command_complete_read_local_version_information(), atwilc3000_write_memory(), btstack_run_loop_freertos_dump_timer(), btstack_run_loop_freertos_init(), create_connection_for_bd_addr_and_type(), event_handler(), gap_random_address_trigger(), gap_random_address_update_handler(), gatt_client_att_packet_handler(), gatt_client_hci_event_packet_handler(), gatt_client_timeout_handler(), gatt_client_timeout_start(), gatt_client_timeout_stop(), gatt_client_write_client_characteristic_configuration(), hal_uart_dma_init(), handle_find_by_type_value_request2(), handle_find_information_request2(), handle_hci_event(), handle_read_blob_request2(), handle_read_by_group_type_request2(), handle_read_by_type_request2(), handle_read_multiple_request2(), handle_read_request2(), hci_emit_dedicated_bonding_result(), hci_emit_hci_open_failed(), hci_emit_nr_connections_changed(), hci_init_done(), hci_initialization_timeout_handler(), hci_initializing_event_handler(), hci_initializing_run(), hci_power_control(), hci_power_control_off(), hci_power_control_sleep(), hci_power_control_wake(), hci_run(), hci_send_cmd_packet(), hci_shutdown_connection(), hci_transport_h4_block_read(), hci_transport_h4_send_packet(), hci_transport_h4_set_baudrate(), hci_transport_h5_block_received(), hci_transport_h5_block_sent(), hci_transport_h5_emit_sleep_state(), hci_transport_h5_open(), hci_transport_h5_process_frame(), hci_transport_h5_reset_link(), hci_transport_h5_send_packet(), hci_transport_h5_set_baudrate(), hci_transport_inactivity_timeout_handler(), hci_transport_link_calc_resend_timeout(), hci_transport_link_timeout_handler(), l2cap_acl_classic_handler(), l2cap_acl_le_handler(), l2cap_hci_event_handler(), l2cap_run(), l2cap_send_connectionless(), l2cap_send_prepared_connectionless(), le_device_db_add(), le_device_db_dump(), le_device_db_encryption_get(), le_device_db_encryption_set(), log_info_hex16(), log_info_key(), packet_handler(), sm_address_resolution_handle_event(), sm_done_for_handle(), sm_event_packet_handler(), sm_handle_encryption_result(), sm_handle_random_result(), sm_key_distribution_handle_all_received(), sm_pdu_handler(), sm_request_pairing(), sm_run(), sm_setup_tk(), sm_stk_generation_init(), and sm_timeout_handler().
|
inlinestatic |
References UNUSED.
void log_debug_hexdump | ( | const void * | data, |
int | size | ||
) |
Hexdump via log_debug *.
data | |
size |
References LOG_LEVEL_DEBUG, and UNUSED.
Referenced by hci_transport_h5_process_frame(), hci_transport_link_send_control(), and hci_transport_link_send_queued_packet().
void log_info_hexdump | ( | const void * | data, |
int | size | ||
) |
Hexdump via log_info.
data | |
size |
References LOG_LEVEL_INFO, and UNUSED.
Referenced by att_dump_attributes(), att_handle_request(), att_run_for_context(), handle_find_by_type_value_request2(), handle_hci_event(), handle_read_by_group_type_request2(), handle_read_by_type_request2(), sm_event_packet_handler(), and sm_handle_random_result().
void log_info_key | ( | const char * | name, |
sm_key_t | key | ||
) |
Log Security Manager key via log_info.
key | to log |
References char_for_high_nibble(), char_for_low_nibble(), log_info, and UNUSED.
Referenced by le_device_db_add(), le_device_db_dump(), sm_aes128_start(), sm_c1_t1(), sm_c1_t3(), sm_handle_encryption_result(), sm_run(), sm_s1_r_prime(), and sm_setup_tk().