From 990115aba69ae7cc76345e58ae0d6d3c3f7c1eae Mon Sep 17 00:00:00 2001 From: reyk Date: Thu, 15 May 2014 07:56:26 +0000 Subject: [PATCH] Use log_warn() to include errno if write() fails. From thib --- usr.sbin/relayd/check_tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/relayd/check_tcp.c b/usr.sbin/relayd/check_tcp.c index 49f7bb4f58f..2ddc47f3f80 100644 --- a/usr.sbin/relayd/check_tcp.c +++ b/usr.sbin/relayd/check_tcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: check_tcp.c,v 1.42 2011/06/17 14:36:51 jsg Exp $ */ +/* $OpenBSD: check_tcp.c,v 1.43 2014/05/15 07:56:26 reyk Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -211,7 +211,7 @@ tcp_send_req(int s, short event, void *arg) if (bs == -1) { if (errno == EAGAIN || errno == EINTR) goto retry; - log_warnx("%s: cannot send request", __func__); + log_warn("%s: cannot send request", __func__); tcp_close(cte, HOST_DOWN); hce_notify_done(cte->host, HCE_TCP_WRITE_FAIL); return; -- 2.20.1