summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-03 09:10:53 -0400
committerGitHub <noreply@github.com>2020-08-03 09:10:53 -0400
commitde5eb3831190262169eab36e64c41992dc22766a (patch)
tree66594f108877fa59012ba371fb19474bb6aa6d4e /libpod
parent41358f5ea06062f1e1b80bd29802ea5d51cfe3b1 (diff)
parentfef3e2da6a2024fff5142b5df80aba36e895ed73 (diff)
downloadpodman-de5eb3831190262169eab36e64c41992dc22766a.tar.gz
podman-de5eb3831190262169eab36e64c41992dc22766a.tar.bz2
podman-de5eb3831190262169eab36e64c41992dc22766a.zip
Merge pull request #7191 from openSUSE/printf
Remove some unnecessary []byte to string conversions
Diffstat (limited to 'libpod')
-rw-r--r--libpod/events/journal_linux.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/events/journal_linux.go b/libpod/events/journal_linux.go
index 7c2a3e0f2..dc55dbc77 100644
--- a/libpod/events/journal_linux.go
+++ b/libpod/events/journal_linux.go
@@ -4,7 +4,6 @@ package events
import (
"context"
- "fmt"
"strconv"
"time"
@@ -50,7 +49,7 @@ func (e EventJournalD) Write(ee Event) error {
case Volume:
m["PODMAN_NAME"] = ee.Name
}
- return journal.Send(fmt.Sprintf("%s", ee.ToHumanReadable()), journal.PriInfo, m)
+ return journal.Send(string(ee.ToHumanReadable()), journal.PriInfo, m)
}
// Read reads events from the journal and sends qualified events to the event channel