diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 23:54:01 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 23:54:01 +0200 |
| commit | 1955effb0daa5269d1b4069f3fb5175dbc29793f (patch) | |
| tree | 435f09be6e7a7a9d5c101accee991de41a889689 | |
| parent | acd91c7c11658360e0540f9d550f1fe0da167109 (diff) | |
Use fmt.Fprintf for event pair builder formatting
| -rw-r--r-- | internal/event/pair.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/event/pair.go b/internal/event/pair.go index 4ad4d4f..131c6b3 100644 --- a/internal/event/pair.go +++ b/internal/event/pair.go @@ -61,7 +61,7 @@ const EventStreamHeader = "durationToPrevNs,durationNs,comm,pid.tid,name,ret,not func (e *Pair) String() string { var sb strings.Builder - sb.WriteString(fmt.Sprintf("%08d,%08d", e.DurationToPrev, e.Duration)) + _, _ = fmt.Fprintf(&sb, "%08d,%08d", e.DurationToPrev, e.Duration) sb.WriteString(",") sb.WriteString(e.Comm) |
