diff --git a/unix/syscall_netbsd_test.go b/unix/syscall_netbsd_test.go index 2316d264..aac43208 100644 --- a/unix/syscall_netbsd_test.go +++ b/unix/syscall_netbsd_test.go @@ -5,7 +5,6 @@ package unix_test import ( - "bytes" "os" "testing" @@ -39,7 +38,7 @@ func TestIoctlPtmget(t *testing.T) { t.Fatalf("IoctlGetPtmget: %v\n", err) } - t.Logf("sfd = %v, ptsname = %v", ptm.Sfd, string(ptm.Sn[:bytes.IndexByte(ptm.Sn[:], 0)])) + t.Logf("sfd = %v, ptsname = %v", ptm.Sfd, unix.ByteSliceToString(ptm.Sn[:])) } func TestStatvfs(t *testing.T) {