From: Kirill Isakov Date: Tue, 17 Aug 2021 08:04:19 +0000 (+0600) Subject: Fix invalid logger() calls in Solaris device code. X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=1022812ed4b5c70162f2f0a9d9a96c716c936408;p=tinc Fix invalid logger() calls in Solaris device code. --- diff --git a/src/solaris/device.c b/src/solaris/device.c index 78bb4370..a8ddd04f 100644 --- a/src/solaris/device.c +++ b/src/solaris/device.c @@ -359,7 +359,7 @@ static bool read_packet(vpn_packet_t *packet) { sbuf.buf = (char *)DATA(packet); if((result = getmsg(device_fd, NULL, &sbuf, &f)) < 0) { - logger(LOG_ERR, "Error while reading from %s %s: %s", device_info, device, strerror(errno)); + logger(DEBUG_TRAFFIC, LOG_ERR, "Error while reading from %s %s: %s", device_info, device, strerror(errno)); return false; } @@ -386,7 +386,7 @@ static bool write_packet(vpn_packet_t *packet) { sbuf.buf = (char *)DATA(packet) + 14; if(putmsg(device_fd, NULL, &sbuf, 0) < 0) { - logger(LOG_ERR, "Can't write to %s %s: %s", device_info, device, strerror(errno)); + logger(DEBUG_TRAFFIC, LOG_ERR, "Can't write to %s %s: %s", device_info, device, strerror(errno)); return false; } @@ -397,7 +397,7 @@ static bool write_packet(vpn_packet_t *packet) { sbuf.buf = (char *)DATA(packet); if(putmsg(device_fd, NULL, &sbuf, 0) < 0) { - logger(LOG_ERR, "Can't write to %s %s: %s", device_info, device, strerror(errno)); + logger(DEBUG_TRAFFIC, LOG_ERR, "Can't write to %s %s: %s", device_info, device, strerror(errno)); return false; }