From d773360d128f0dd5904381aa7cd2e73c84b0a8c4 Mon Sep 17 00:00:00 2001 From: Pavel Borzenkov Date: Fri, 13 Nov 2015 18:09:11 +0300 Subject: [PATCH] Add missing argument to fmt.Errorf function in 'ntp' collector Signed-off-by: Pavel Borzenkov --- collector/ntp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/ntp.go b/collector/ntp.go index 5b8ea914..133f1e5f 100644 --- a/collector/ntp.go +++ b/collector/ntp.go @@ -45,7 +45,7 @@ func NewNtpCollector() (Collector, error) { return nil, fmt.Errorf("no NTP server specifies, see --ntpServer") } if *ntpProtocolVersion < 2 || *ntpProtocolVersion > 4 { - return nil, fmt.Errorf("invalid NTP protocol version %d; must be 2, 3, or 4") + return nil, fmt.Errorf("invalid NTP protocol version %d; must be 2, 3, or 4", *ntpProtocolVersion) } return &ntpCollector{