Fix #1549 - fix typo in log format specifier

This commit is contained in:
Sergey Lyubka 2022-05-15 21:02:41 +01:00
parent 72cc433265
commit 2b9f0480a1
2 changed files with 2 additions and 2 deletions

View File

@ -3372,7 +3372,7 @@ bool mg_open_listener(struct mg_connection *c, const char *url) {
} else if (setsockopt(fd, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char *) &on,
sizeof(on)) != 0) {
// "Using SO_REUSEADDR and SO_EXCLUSIVEADDRUSE"
MG_ERROR(("exclusiveaddruse: %s", MG_SOCK_ERRNO));
MG_ERROR(("exclusiveaddruse: %d", MG_SOCK_ERRNO));
#endif
} else if (bind(fd, &usa.sa, slen) != 0) {
MG_ERROR(("bind: %d", MG_SOCK_ERRNO));

View File

@ -238,7 +238,7 @@ bool mg_open_listener(struct mg_connection *c, const char *url) {
} else if (setsockopt(fd, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char *) &on,
sizeof(on)) != 0) {
// "Using SO_REUSEADDR and SO_EXCLUSIVEADDRUSE"
MG_ERROR(("exclusiveaddruse: %s", MG_SOCK_ERRNO));
MG_ERROR(("exclusiveaddruse: %d", MG_SOCK_ERRNO));
#endif
} else if (bind(fd, &usa.sa, slen) != 0) {
MG_ERROR(("bind: %d", MG_SOCK_ERRNO));