@@ -210,7 +210,7 @@ size_t _mdns_udp_pcb_write(mdns_if_t tcpip_if, mdns_ip_protocol_t ip_protocol, c
210
210
ESP_LOGD (TAG , "[sock=%d]: Sending to IP %s port %d" , sock , get_string_address (& in_addr ), port );
211
211
ssize_t actual_len = sendto (sock , data , len , 0 , (struct sockaddr * )& in_addr , ss_size );
212
212
if (actual_len < 0 ) {
213
- ESP_LOGE (TAG , "[sock=%d]: _mdns_udp_pcb_write sendto() has failed\n error =%d: %s" , sock , errno , strerror (errno ));
213
+ ESP_LOGE (TAG , "[sock=%d]: _mdns_udp_pcb_write sendto() has failed\n errno =%d: %s" , sock , errno , strerror (errno ));
214
214
}
215
215
return actual_len ;
216
216
}
@@ -396,7 +396,7 @@ static int create_socket(esp_netif_t *netif)
396
396
int sock = socket (PF_INET , SOCK_DGRAM , 0 );
397
397
#endif
398
398
if (sock < 0 ) {
399
- ESP_LOGE (TAG , "Failed to create socket. Error %d" , errno );
399
+ ESP_LOGE (TAG , "Failed to create socket. errno %d" , errno );
400
400
return -1 ;
401
401
}
402
402
@@ -412,7 +412,7 @@ static int create_socket(esp_netif_t *netif)
412
412
bzero (& saddr .sin6_addr .s6_addr , sizeof (saddr .sin6_addr .s6_addr ));
413
413
int err = bind (sock , (struct sockaddr * )& saddr , sizeof (struct sockaddr_in6 ));
414
414
if (err < 0 ) {
415
- ESP_LOGE (TAG , "Failed to bind socket. Error %d" , errno );
415
+ ESP_LOGE (TAG , "Failed to bind socket. errno %d" , errno );
416
416
goto err ;
417
417
}
418
418
#else
@@ -422,7 +422,7 @@ static int create_socket(esp_netif_t *netif)
422
422
bzero (& saddr .sin_addr .s_addr , sizeof (saddr .sin_addr .s_addr ));
423
423
int err = bind (sock , (struct sockaddr * )& saddr , sizeof (struct sockaddr_in ));
424
424
if (err < 0 ) {
425
- ESP_LOGE (TAG , "Failed to bind socket. Error %d" , errno );
425
+ ESP_LOGE (TAG , "Failed to bind socket. errno %d" , errno );
426
426
goto err ;
427
427
}
428
428
#endif // CONFIG_LWIP_IPV6
@@ -447,7 +447,7 @@ static int socket_add_ipv6_multicast_group(int sock, esp_netif_t *netif)
447
447
int ifindex = esp_netif_get_netif_impl_index (netif );
448
448
int err = setsockopt (sock , IPPROTO_IPV6 , IPV6_MULTICAST_IF , & ifindex , sizeof (ifindex ));
449
449
if (err < 0 ) {
450
- ESP_LOGE (TAG , "Failed to set IPV6_MULTICAST_IF. Error %d" , errno );
450
+ ESP_LOGE (TAG , "Failed to set IPV6_MULTICAST_IF. errno %d" , errno );
451
451
return err ;
452
452
}
453
453
@@ -457,7 +457,7 @@ static int socket_add_ipv6_multicast_group(int sock, esp_netif_t *netif)
457
457
v6imreq .ipv6mr_interface = ifindex ;
458
458
err = setsockopt (sock , IPPROTO_IPV6 , IPV6_ADD_MEMBERSHIP , & v6imreq , sizeof (struct ipv6_mreq ));
459
459
if (err < 0 ) {
460
- ESP_LOGE (TAG , "Failed to set IPV6_ADD_MEMBERSHIP. Error %d" , errno );
460
+ ESP_LOGE (TAG , "Failed to set IPV6_ADD_MEMBERSHIP. errno %d" , errno );
461
461
return err ;
462
462
}
463
463
return err ;
@@ -482,7 +482,7 @@ static int socket_add_ipv4_multicast_group(int sock, esp_netif_t *netif)
482
482
err = setsockopt (sock , IPPROTO_IP , IP_ADD_MEMBERSHIP , & imreq , sizeof (struct ip_mreq ));
483
483
if (err < 0 ) {
484
484
ESP_LOGE (TAG , "%d %s" , sock , strerror (errno ));
485
- ESP_LOGE (TAG , "Failed to set IP_ADD_MEMBERSHIP. Error %d" , errno );
485
+ ESP_LOGE (TAG , "Failed to set IP_ADD_MEMBERSHIP. errno %d" , errno );
486
486
goto err ;
487
487
}
488
488
0 commit comments