changeset 1704:d384bc2e5af3

Don't warn when SO_PRIORITY fails
author Matt Johnston <matt@ucc.asn.au>
date Thu, 28 May 2020 23:26:34 +0800
parents ee6ccc2ecc47
children 5b701bf529aa
files netio.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/netio.c	Thu May 28 23:23:54 2020 +0800
+++ b/netio.c	Thu May 28 23:26:34 2020 +0800
@@ -398,9 +398,9 @@
 	}
 	/* linux specific, sets QoS class. see tc-prio(8) */
 	rc = setsockopt(sock, SOL_SOCKET, SO_PRIORITY, (void*) &so_prio_val, sizeof(so_prio_val));
-	if (rc < 0 && errno != ENOTSOCK)
-		dropbear_log(LOG_WARNING, "Couldn't set SO_PRIORITY (%s)",
-				strerror(errno));
+	if (rc < 0 && errno != ENOTSOCK) {
+		TRACE(("Couldn't set SO_PRIORITY (%s)", strerror(errno)))
+    }
 #endif
 
 }