aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-11-01 22:18:16 -0400
committerRuss Cox <rsc@golang.org>2011-11-01 22:18:16 -0400
commitf7b7338ec247ddd8f47f4747e74b882ac562c2d2 (patch)
treea9671efb118c6de3f55161fee8c323998a987991
parentf1b64aa7586551e0d433188a000481c29bc37c2e (diff)
downloadgo-f7b7338ec247ddd8f47f4747e74b882ac562c2d2.tar.gz
go-f7b7338ec247ddd8f47f4747e74b882ac562c2d2.zip
net: update for error (linux)
R=adg CC=golang-dev https://golang.org/cl/5303091
-rw-r--r--src/pkg/net/fd_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/net/fd_linux.go b/src/pkg/net/fd_linux.go
index 56c6a2890e..cce74cd676 100644
--- a/src/pkg/net/fd_linux.go
+++ b/src/pkg/net/fd_linux.go
@@ -98,12 +98,12 @@ func (p *pollster) StopWaiting(fd int, bits uint) {
p.ctlEvent.Fd = int32(fd)
p.ctlEvent.Events = events
if e := syscall.EpollCtl(p.epfd, syscall.EPOLL_CTL_MOD, fd, &p.ctlEvent); e != 0 {
- print("Epoll modify fd=", fd, ": ", os.Errno(e).String(), "\n")
+ print("Epoll modify fd=", fd, ": ", os.Errno(e).Error(), "\n")
}
p.events[fd] = events
} else {
if e := syscall.EpollCtl(p.epfd, syscall.EPOLL_CTL_DEL, fd, nil); e != 0 {
- print("Epoll delete fd=", fd, ": ", os.Errno(e).String(), "\n")
+ print("Epoll delete fd=", fd, ": ", os.Errno(e).Error(), "\n")
}
delete(p.events, fd)
}