X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_power%2Fguest_channel.c;h=85c92fab9d459035387b702eeef4074ef2d98bfe;hb=ca33faf9ef10;hp=22956657e1407d9a84f714c0cd65b3963d2234e8;hpb=cd0d5547e873c06386231d6fdae381d5c4f9f9bd;p=dpdk.git diff --git a/lib/librte_power/guest_channel.c b/lib/librte_power/guest_channel.c index 22956657e1..85c92fab9d 100644 --- a/lib/librte_power/guest_channel.c +++ b/lib/librte_power/guest_channel.c @@ -42,7 +42,6 @@ #include -#include #include "guest_channel.h" #include "channel_commands.h" @@ -104,8 +103,10 @@ guest_channel_host_connect(const char *path, unsigned lcore_id) global_fds[lcore_id] = fd; ret = guest_channel_send_msg(&pkt, lcore_id); if (ret != 0) { - RTE_LOG(ERR, GUEST_CHANNEL, "Error on channel '%s' communications " - "test: %s\n", fd_path, strerror(ret)); + RTE_LOG(ERR, GUEST_CHANNEL, + "Error on channel '%s' communications test: %s\n", + fd_path, ret > 0 ? strerror(ret) : + "channel not connected"); goto error; } RTE_LOG(INFO, GUEST_CHANNEL, "Channel '%s' is now connected\n", fd_path);