summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorsr2012-08-25 20:05:04 +0200
committersr2012-08-25 20:05:04 +0200
commit5536f1731c6c603f1b76e2c83ce18c4e610051d7 (patch)
treee91063582c9e7039146a020e3144a2fbeec92932 /src/client
parent[KERNEL] Fix compiler warning on 32bit systems (diff)
downloaddnbd3-5536f1731c6c603f1b76e2c83ce18c4e610051d7.tar.gz
dnbd3-5536f1731c6c603f1b76e2c83ce18c4e610051d7.tar.xz
dnbd3-5536f1731c6c603f1b76e2c83ce18c4e610051d7.zip
[KERNEL] Only update alt-server list if received from initial server
[*] Add CMD_KEEPALIVE protocol message type
Diffstat (limited to 'src/client')
-rw-r--r--src/client/client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/client.c b/src/client/client.c
index c3318f4..57762cc 100644
--- a/src/client/client.c
+++ b/src/client/client.c
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
const int ret = ioctl(fd, IOCTL_CLOSE, &msg);
if (ret < 0)
{
- printf("ERROR: ioctl not successful (close, errcode: %d)\n", ret);
+ printf("ERROR: ioctl not successful (close, %s (%d))\n", strerror(ret), ret);
exit(EXIT_FAILURE);
}
@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
const int ret = ioctl(fd, IOCTL_SWITCH, &msg);
if (ret < 0)
{
- printf("ERROR: ioctl not successful (switch, errcode: %d)\n", ret);
+ printf("ERROR: ioctl not successful (switch, %s (%d))\n", strerror(ret), ret);
exit(EXIT_FAILURE);
}
@@ -205,7 +205,7 @@ int main(int argc, char *argv[])
const int ret = ioctl(fd, IOCTL_OPEN, &msg);
if (ret < 0)
{
- printf("ERROR: ioctl not successful (connect, errcode: %d)\n", ret);
+ printf("ERROR: ioctl not successful (connect, %s (%d))\n", strerror(ret), ret);
exit(EXIT_FAILURE);
}
@@ -242,7 +242,7 @@ int main(int argc, char *argv[])
const int ret = ioctl(fd, IOCTL_OPEN, &msg);
if (ret < 0)
{
- printf("ERROR: ioctl not successful (config file, errcode: %d)\n", ret);
+ printf("ERROR: ioctl not successful (config file, %s (%d))\n", strerror(ret), ret);
exit(EXIT_FAILURE);
}