power: fix error log on guest message polling
[dpdk.git] / lib / librte_power / guest_channel.c
index 439cd2f..b984d55 100644 (file)
@@ -148,7 +148,7 @@ int power_guest_channel_read_msg(void *pkt,
                return -1;
        } else if (ret < 0) {
                RTE_LOG(ERR, GUEST_CHANNEL, "Error occurred during poll function: %s\n",
-                               strerror(ret));
+                               strerror(errno));
                return -1;
        }