Skip to content

Commit a68c698

Browse files
committed
fix(bt): Fix argument type of ESP_LOGI for spp examples about format error
Closes espressif#11819
1 parent a296532 commit a68c698

File tree

2 files changed

+2
-2
lines changed
  • examples/bluetooth/bluedroid/classic_bt

2 files changed

+2
-2
lines changed

examples/bluetooth/bluedroid/classic_bt/bt_spp_acceptor/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
107107
* rather than in this callback directly. Since the printing takes too much time, it may stuck the Bluetooth
108108
* stack and also have a effect on the throughput!
109109
*/
110-
ESP_LOGI(SPP_TAG, "ESP_SPP_DATA_IND_EVT len:%d handle:%d",
110+
ESP_LOGI(SPP_TAG, "ESP_SPP_DATA_IND_EVT len:%d handle:%"PRIu32,
111111
param->data_ind.len, param->data_ind.handle);
112112
if (param->data_ind.len < 128) {
113113
esp_log_buffer_hex("", param->data_ind.data, param->data_ind.len);

examples/bluetooth/bluedroid/classic_bt/bt_spp_initiator/main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
189189
* rather than in this callback directly. Since the printing takes too much time, it may stuck the Bluetooth
190190
* stack and also have a effect on the throughput!
191191
*/
192-
ESP_LOGI(SPP_TAG, "ESP_SPP_WRITE_EVT len:%d handle:%d cong:%d", param->write.len, param->write.handle,
192+
ESP_LOGI(SPP_TAG, "ESP_SPP_WRITE_EVT len:%d handle:%"PRIu32" cong:%d", param->write.len, param->write.handle,
193193
param->write.cong);
194194
if (param->write.len < 128) {
195195
esp_log_buffer_hex("", spp_data, param->write.len);

0 commit comments

Comments
 (0)