Browse files

print error message instead of error number

  • Loading branch information...
1 parent 6308041 commit ea6298ca810f31030899cc25d317bc3ca53bc016 @tmakatos tmakatos committed Jun 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 control/tap-ctl-ipc.c
View
2 control/tap-ctl-ipc.c
@@ -178,7 +178,7 @@ tap_ctl_connect(const char *name, int *sfd)
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd == -1) {
- EPRINTF("couldn't create socket for %s: %d\n", name, errno);
+ EPRINTF("couldn't create socket for %s: %s\n", name, strerror(errno));
return -errno;
}

0 comments on commit ea6298c

Please sign in to comment.