X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_power%2Frte_power_kvm_vm.c;h=a1badf343c7b2f06c2e5a825a5739ab1f67110ac;hb=f3bc0289094a27ec929be50b9895504b8939b293;hp=11596c39ea6d29e0045972a4e506a24b82477dc0;hpb=445c6528b55f9025bbeeb5eeabaed14c74125696;p=dpdk.git diff --git a/lib/librte_power/rte_power_kvm_vm.c b/lib/librte_power/rte_power_kvm_vm.c index 11596c39ea..a1badf343c 100644 --- a/lib/librte_power/rte_power_kvm_vm.c +++ b/lib/librte_power/rte_power_kvm_vm.c @@ -34,7 +34,6 @@ #include #include -#include #include "guest_channel.h" #include "channel_commands.h" @@ -107,7 +106,8 @@ send_msg(unsigned lcore_id, uint32_t scale_direction) ret = guest_channel_send_msg(&pkt[lcore_id], lcore_id); if (ret == 0) return 1; - RTE_LOG(DEBUG, POWER, "Error sending message: %s\n", strerror(ret)); + RTE_LOG(DEBUG, POWER, "Error sending message: %s\n", + ret > 0 ? strerror(ret) : "channel not connected"); return -1; }