Align per-op log messages.
parent
c2e9acdd0a
commit
83f6f835b8
|
@ -65,12 +65,13 @@ func (c *Connection) log(
|
||||||
file = "???"
|
file = "???"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fileLine := fmt.Sprintf("%v:%v", path.Base(file), line)
|
||||||
|
|
||||||
// Format the actual message to be printed.
|
// Format the actual message to be printed.
|
||||||
msg := fmt.Sprintf(
|
msg := fmt.Sprintf(
|
||||||
"Op 0x%08x %v:%v] %v",
|
"Op 0x%08x %24s] %v",
|
||||||
opID,
|
opID,
|
||||||
path.Base(file),
|
fileLine,
|
||||||
line,
|
|
||||||
fmt.Sprintf(format, v...))
|
fmt.Sprintf(format, v...))
|
||||||
|
|
||||||
// Print it.
|
// Print it.
|
||||||
|
|
Loading…
Reference in New Issue