From e55822c62f7287698a683e6e7e40aa9a992b5585 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 28 Sep 2025 21:51:10 +0900 Subject: container/init: reduce verbose noise This makes it possible to optionally omit the identifying verbose message, for when the Op implementation can provide a much more useful message in its case, using information not yet available to the String method. Signed-off-by: Ophestra --- container/inittmpfs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/inittmpfs.go') diff --git a/container/inittmpfs.go b/container/inittmpfs.go index 2835004a..e8da5fd3 100644 --- a/container/inittmpfs.go +++ b/container/inittmpfs.go @@ -56,5 +56,5 @@ func (t *MountTmpfsOp) Is(op Op) bool { t.Size == vt.Size && t.Perm == vt.Perm } -func (*MountTmpfsOp) prefix() string { return "mounting" } -func (t *MountTmpfsOp) String() string { return fmt.Sprintf("tmpfs on %q size %d", t.Path, t.Size) } +func (*MountTmpfsOp) prefix() (string, bool) { return "mounting", true } +func (t *MountTmpfsOp) String() string { return fmt.Sprintf("tmpfs on %q size %d", t.Path, t.Size) } -- cgit v1.3.1