From 2e9e4a47a2a8c553f7630b300cd1efb079dc2c38 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Fri, 23 Jan 2026 17:41:29 +0100 Subject: [PATCH] fs: fix bwlimit: use %d instead of %q for ints Signed-off-by: Mikel Olasagasti Uranga --- fs/bwtimetable.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/bwtimetable.go b/fs/bwtimetable.go index 0f7597d11..52e84d3cb 100644 --- a/fs/bwtimetable.go +++ b/fs/bwtimetable.go @@ -90,14 +90,14 @@ func validateHour(HHMM string) error { return fmt.Errorf("invalid hour in time specification %q: %v", HHMM, err) } if hh < 0 || hh > 23 { - return fmt.Errorf("invalid hour (must be between 00 and 23): %q", hh) + return fmt.Errorf("invalid hour (must be between 00 and 23): %d", hh) } mm, err := strconv.Atoi(HHMM[3:]) if err != nil { return fmt.Errorf("invalid minute in time specification: %q: %v", HHMM, err) } if mm < 0 || mm > 59 { - return fmt.Errorf("invalid minute (must be between 00 and 59): %q", hh) + return fmt.Errorf("invalid minute (must be between 00 and 59): %d", hh) } return nil }