From f1955659615c7f007c146443918609f5fcf9b34e Mon Sep 17 00:00:00 2001 From: Khushi Jain Date: Fri, 5 Sep 2025 17:24:56 +0530 Subject: [PATCH] chore: fix formatting issues in logp printf-style calls (#9757) (cherry picked from commit a47be25cb759c3a7722e2bcbd751d7630bd94359) --- pkg/ipc/listener_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ipc/listener_windows.go b/pkg/ipc/listener_windows.go index ccfdc87d434..f55ae460233 100644 --- a/pkg/ipc/listener_windows.go +++ b/pkg/ipc/listener_windows.go @@ -57,7 +57,7 @@ func securityDescriptor(log *logger.Logger) (string, error) { isAdmin, err := utils.HasRoot() if err != nil { // do not fail, agent would end up in a loop, continue with limited permissions - log.Warnf("failed to detect Administrator: %w", err) + log.Warnf("failed to detect Administrator: %v", err) isAdmin = false // just in-case to ensure that in error case that its always false } // SYSTEM/Administrators can always talk over the pipe, even when not running as privileged @@ -73,7 +73,7 @@ func securityDescriptor(log *logger.Logger) (string, error) { gid, err := pathGID(paths.Top()) if err != nil { // do not fail, agent would end up in a loop, continue with limited permissions - log.Warnf("failed to detect group: %w", err) + log.Warnf("failed to detect group: %v", err) } else { descriptor += "(A;;GA;;;" + gid + ")" }