Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coap-debug.c: remove quotation when printing Unix domain socket paths #1462

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/coap_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ coap_print_addr(const coap_address_t *addr, unsigned char *buf, size_t len) {
#endif /* COAP_IPV6_SUPPORT */
#if COAP_AF_UNIX_SUPPORT
case AF_UNIX:
snprintf((char *)buf, len, "'%s'", addr->addr.cun.sun_path);
snprintf((char *)buf, len, "%s", addr->addr.cun.sun_path);
break;
#endif /* COAP_AF_UNIX_SUPPORT */
default:
Expand Down Expand Up @@ -431,7 +431,7 @@ coap_print_ip_addr(const coap_address_t *addr, char *buf, size_t len) {
#endif /* COAP_IPV6_SUPPORT */
#if COAP_AF_UNIX_SUPPORT
case AF_UNIX:
snprintf(buf, len, "'%s'", addr->addr.cun.sun_path);
snprintf(buf, len, "%s", addr->addr.cun.sun_path);
return buf;
#endif /* COAP_AF_UNIX_SUPPORT */
default:
Expand Down