]> git.proxmox.com Git - mirror_ovs.git/blobdiff - lib/netlink-socket.c
netlink-socket: Fix log message for subscribe/unsubscribe on Windows.
[mirror_ovs.git] / lib / netlink-socket.c
index 5cf1027b7505d8348acb3fecd44accea49d0fa9a..5ef4b15d83a807f53284f01ae42128653a70a4d8 100644 (file)
@@ -372,8 +372,8 @@ nl_sock_subscribe_packets(struct nl_sock *sock)
 
     error = nl_sock_subscribe_packet__(sock, true);
     if (error) {
-        VLOG_WARN("could not unsubscribe packets (%s)",
-                  ovs_strerror(errno));
+        VLOG_WARN("could not subscribe packets (%s)",
+                  ovs_strerror(error));
         return error;
     }
     sock->read_ioctl = OVS_IOCTL_READ_PACKET;
@@ -388,8 +388,8 @@ nl_sock_unsubscribe_packets(struct nl_sock *sock)
 
     int error = nl_sock_subscribe_packet__(sock, false);
     if (error) {
-        VLOG_WARN("could not subscribe to packets (%s)",
-                  ovs_strerror(errno));
+        VLOG_WARN("could not unsubscribe to packets (%s)",
+                  ovs_strerror(error));
         return error;
     }