From 5e91026bb661e8120b26edd48430f7b4d6d3d98f Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Wed, 28 Jan 2015 12:15:03 +0000 Subject: [PATCH] iscsi-scstd: Fix error print in iser listener socker create Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5996 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/iscsi_scstd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iscsi-scst/usr/iscsi_scstd.c b/iscsi-scst/usr/iscsi_scstd.c index b0875c761..69a67bb07 100644 --- a/iscsi-scst/usr/iscsi_scstd.c +++ b/iscsi-scst/usr/iscsi_scstd.c @@ -265,8 +265,8 @@ static void create_iser_listen_socket(struct pollfd *array) rc = ioctl(iser_fd, SET_LISTEN_ADDR, &info); if (rc != 0) { - log_error("Unable to set address info (%s)!", - strerror(rc)); + log_error("Unable to set listen address (%s)!", + strerror(errno)); } ++i; }