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/initremount.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'container/initremount.go') diff --git a/container/initremount.go b/container/initremount.go index 6df8a330..09f141db 100644 --- a/container/initremount.go +++ b/container/initremount.go @@ -31,5 +31,5 @@ func (r *RemountOp) Is(op Op) bool { r.Target.Is(vr.Target) && r.Flags == vr.Flags } -func (*RemountOp) prefix() string { return "remounting" } -func (r *RemountOp) String() string { return fmt.Sprintf("%q flags %#x", r.Target, r.Flags) } +func (*RemountOp) prefix() (string, bool) { return "remounting", true } +func (r *RemountOp) String() string { return fmt.Sprintf("%q flags %#x", r.Target, r.Flags) } -- cgit v1.3.1