log: Make ESP_LOGx macros into single statements

Requires a semicolon after any use (previously this was optional due to trailing } after expansion)

Closes https://github.com/espressif/esp-idf/issues/1757
This commit is contained in:
Angus Gratton
2018-04-20 13:41:11 +10:00
committed by Angus Gratton
parent 5d3b26e8d0
commit 2f318d16fa
5 changed files with 63 additions and 56 deletions

View File

@@ -163,13 +163,13 @@ reconnect:
ESP_LOGI(TAG, "SSL read: %s", recv_buf);
if (strstr(recv_buf, "GET ") &&
strstr(recv_buf, " HTTP/1.1")) {
ESP_LOGI(TAG, "SSL get matched message")
ESP_LOGI(TAG, "SSL write message")
ESP_LOGI(TAG, "SSL get matched message");
ESP_LOGI(TAG, "SSL write message");
ret = SSL_write(ssl, send_data, send_bytes);
if (ret > 0) {
ESP_LOGI(TAG, "OK")
ESP_LOGI(TAG, "OK");
} else {
ESP_LOGI(TAG, "error")
ESP_LOGI(TAG, "error");
}
break;
}