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/initproc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/initproc.go') diff --git a/container/initproc.go b/container/initproc.go index 877349f2..28b865e5 100644 --- a/container/initproc.go +++ b/container/initproc.go @@ -32,5 +32,5 @@ func (p *MountProcOp) Is(op Op) bool { return ok && p.Valid() && vp.Valid() && p.Target.Is(vp.Target) } -func (*MountProcOp) prefix() string { return "mounting" } -func (p *MountProcOp) String() string { return fmt.Sprintf("proc on %q", p.Target) } +func (*MountProcOp) prefix() (string, bool) { return "mounting", true } +func (p *MountProcOp) String() string { return fmt.Sprintf("proc on %q", p.Target) } -- cgit v1.3.1