socket-util: Avoid using the identical message for different errors
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Mon, 24 Feb 2014 02:46:21 +0000 (11:46 +0900)
committerBen Pfaff <blp@nicira.com>
Wed, 26 Feb 2014 16:16:37 +0000 (08:16 -0800)
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/socket-util.c

index 728c76e..54ef956 100644 (file)
@@ -753,7 +753,7 @@ inet_open_active(int style, const char *target, uint16_t default_port,
      * connect(), the handshake SYN frames will be sent with a TOS of 0. */
     error = set_dscp(fd, dscp);
     if (error) {
-        VLOG_ERR("%s: socket: %s", target, sock_strerror(error));
+        VLOG_ERR("%s: set_dscp: %s", target, sock_strerror(error));
         goto exit;
     }
 
@@ -890,7 +890,7 @@ inet_open_passive(int style, const char *target, int default_port,
      * connect(), the handshake SYN frames will be sent with a TOS of 0. */
     error = set_dscp(fd, dscp);
     if (error) {
-        VLOG_ERR("%s: socket: %s", target, sock_strerror(error));
+        VLOG_ERR("%s: set_dscp: %s", target, sock_strerror(error));
         goto error;
     }