Skip to content

Commit 543fe08

Browse files
committed
stack: fix race ToHTML address format to hex
A pointer in decimal isn't particularly useful.
1 parent 73fe268 commit 543fe08

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

stack/data.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stack/goroutines.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
</h1>
246246
{{if $e.Locked}} <span class="locked">[locked]</span>
247247
{{- end -}}
248-
{{if $e.RaceAddr}} <span class="race">Race {{if $e.RaceWrite}}write{{else}}read{{end}} @ {{$e.RaceAddr}}</span><br>
248+
{{if $e.RaceAddr}} <span class="race">Race {{if $e.RaceWrite}}write{{else}}read{{end}} @ {{printf "0x%08X" $e.RaceAddr}}</span><br>
249249
{{- end -}}
250250
{{- if $e.CreatedBy.Calls}} <span class="created">Created by: {{template "RenderCreatedBy" index $e.CreatedBy.Calls 0}}</span>
251251
{{- end -}}

0 commit comments

Comments
 (0)