|
|
@@ -167,7 +167,7 @@ static void cmd_ping_on_ping_success(esp_ping_handle_t hdl, void *args)
|
|
|
esp_ping_get_profile(hdl, ESP_PING_PROF_IPADDR, &target_addr, sizeof(target_addr));
|
|
|
esp_ping_get_profile(hdl, ESP_PING_PROF_SIZE, &recv_len, sizeof(recv_len));
|
|
|
esp_ping_get_profile(hdl, ESP_PING_PROF_TIMEGAP, &elapsed_time, sizeof(elapsed_time));
|
|
|
- printf("%d bytes from %s icmp_seq=%d ttl=%d time=%d ms\n",
|
|
|
+ printf("%" PRIu32 "bytes from %s icmp_seq=%d ttl=%d time=%" PRIu32 "ms\n",
|
|
|
recv_len, inet_ntoa(target_addr.u_addr.ip4), seqno, ttl, elapsed_time);
|
|
|
}
|
|
|
|
|
|
@@ -197,7 +197,7 @@ static void cmd_ping_on_ping_end(esp_ping_handle_t hdl, void *args)
|
|
|
} else {
|
|
|
printf("\n--- %s ping statistics ---\n", inet6_ntoa(*ip_2_ip6(&target_addr)));
|
|
|
}
|
|
|
- printf("%d packets transmitted, %d received, %d%% packet loss, time %dms\n",
|
|
|
+ printf("%" PRIu32 "packets transmitted, %" PRIu32 " received, %" PRIu32 "%% packet loss, time %" PRIu32 "ms\n",
|
|
|
transmitted, received, loss, total_time_ms);
|
|
|
// delete the ping sessions, so that we clean up all resources and can create a new ping session
|
|
|
// we don't have to call delete function in the callback, instead we can call delete function from other tasks
|