From 6af32b40e6cb0ccfda084bd3b366c53bc6bd1715 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Sat, 25 Oct 2014 12:40:55 -0500 Subject: [PATCH] cleanup go vet errors --- proctl/proctl_linux_amd64.go | 2 -- proctl/threads_linux_amd64.go | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/proctl/proctl_linux_amd64.go b/proctl/proctl_linux_amd64.go index f8abf419..b3ee42b5 100644 --- a/proctl/proctl_linux_amd64.go +++ b/proctl/proctl_linux_amd64.go @@ -512,6 +512,4 @@ func wait(dbp *DebuggedProcess, pid int, options int) (int, *syscall.WaitStatus, } } } - - return 0, nil, nil } diff --git a/proctl/threads_linux_amd64.go b/proctl/threads_linux_amd64.go index 5dd85c5d..939803fc 100644 --- a/proctl/threads_linux_amd64.go +++ b/proctl/threads_linux_amd64.go @@ -87,12 +87,12 @@ func (thread *ThreadContext) Step() (err error) { err = syscall.PtraceSingleStep(thread.Id) if err != nil { - return fmt.Errorf("step failed: ", err.Error()) + return fmt.Errorf("step failed: %s", err.Error()) } _, _, err = wait(thread.Process, thread.Id, 0) if err != nil { - return fmt.Errorf("step failed: ", err.Error()) + return fmt.Errorf("step failed: %s", err.Error()) } return nil @@ -120,7 +120,7 @@ func (thread *ThreadContext) Next() (err error) { step := func() (uint64, error) { err = thread.Step() if err != nil { - return 0, fmt.Errorf("next stepping failed: ", err.Error()) + return 0, fmt.Errorf("next stepping failed: %s", err.Error()) } return thread.CurrentPC()