Align per-op log messages.

geesefs-0-30-9
Aaron Jacobs 2015-04-29 12:11:34 +10:00
parent c2e9acdd0a
commit 83f6f835b8
1 changed files with 4 additions and 3 deletions

View File

@ -65,12 +65,13 @@ func (c *Connection) log(
file = "???"
}
fileLine := fmt.Sprintf("%v:%v", path.Base(file), line)
// Format the actual message to be printed.
msg := fmt.Sprintf(
"Op 0x%08x %v:%v] %v",
"Op 0x%08x %24s] %v",
opID,
path.Base(file),
line,
fileLine,
fmt.Sprintf(format, v...))
// Print it.