diff options
author | Russ Cox <rsc@golang.org> | 2010-09-12 00:06:45 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-09-12 00:06:45 -0400 |
commit | 9d703468861652f59038fb41003a1693a9080975 (patch) | |
tree | a2b6650e7173074cdd6555d1147d9adc88ee6cb9 /src/pkg/log | |
parent | 25b651f90951a8c76a0378b9d882f95fb025b84e (diff) | |
download | go-9d703468861652f59038fb41003a1693a9080975.tar.gz |
5g: register allocation bugs
Fixes issue 1099.
R=ken2, r
CC=golang-dev
http://codereview.appspot.com/2147047
Diffstat (limited to 'src/pkg/log')
-rw-r--r-- | src/pkg/log/log.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pkg/log/log.go b/src/pkg/log/log.go index cfc1bd776..28d6204eb 100644 --- a/src/pkg/log/log.go +++ b/src/pkg/log/log.go @@ -86,11 +86,7 @@ func (l *Logger) formatHeader(ns int64, calldepth int) string { if l.flag&(Ldate|Ltime|Lmicroseconds) != 0 { t := time.SecondsToLocalTime(ns / 1e9) if l.flag&(Ldate) != 0 { - // BUG: work around bug in 5g by simplifying expression. - // h += itoa(int(t.Year), 4) + "/" + itoa(t.Month, 2) + "/" + itoa(t.Day, 2) + " " - h += itoa(int(t.Year), 4) - h += "/" + itoa(t.Month, 2) - h += "/" + itoa(t.Day, 2) + " " + h += itoa(int(t.Year), 4) + "/" + itoa(t.Month, 2) + "/" + itoa(t.Day, 2) + " " } if l.flag&(Ltime|Lmicroseconds) != 0 { h += itoa(t.Hour, 2) + ":" + itoa(t.Minute, 2) + ":" + itoa(t.Second, 2) |