Skip to content

Commit 642b055

Browse files
emosbaughtwz123
andcommitted
fix log format string
Co-authored-by: Tom Wieczorek <[email protected]> Signed-off-by: Ethan Mosbaugh <[email protected]> Signed-off-by: Ethan Mosbaugh <[email protected]>
1 parent 76ac812 commit 642b055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/component/worker/kernelsetup_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func hasFilesystem(filesystem string) bool {
4545
func modprobe(module string) {
4646
out, err := exec.Command("modprobe", module).CombinedOutput()
4747
if err != nil {
48-
logrus.Warnf("failed to load %s kernel module: %s, out=%q", module, err.Error(), string(out))
48+
logrus.WithError(err).Warnf("failed to load kernel module %s: %s", module, out)
4949
}
5050
}
5151

0 commit comments

Comments
 (0)