From 1ce255ffa387a668687cd1fcde6027336c268503 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Fri, 10 Jul 2015 15:48:51 -0500 Subject: [PATCH] Remove any printing from core proc package Also, reorganizes some code. Initially, the `proc` package emitted a lot of output. Now, that should not be the case. The `proc` package should never print, for any reason. That should be handled by clients. --- proc/proc.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proc/proc.go b/proc/proc.go index 14b671a3..49a7f0ee 100644 --- a/proc/proc.go +++ b/proc/proc.go @@ -412,8 +412,7 @@ func (dbp *Process) Step() (err error) { if th.blocked() { continue } - err := th.Step() - if err != nil { + if err := th.Step(); err != nil { return err } } @@ -426,7 +425,6 @@ func (dbp *Process) Step() (err error) { // Change from current thread to the thread specified by `tid`. func (dbp *Process) SwitchThread(tid int) error { if th, ok := dbp.Threads[tid]; ok { - fmt.Printf("thread context changed from %d to %d\n", dbp.CurrentThread.Id, tid) dbp.CurrentThread = th return nil }