From 45b48e0c69bfee339f29e8aecbc3c5af64c2b1d4 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 26 Dec 2019 21:49:48 +0700 Subject: cmd: fix formatting arguments --- cmd/resolver/main.go | 2 +- cmd/resolverbench/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/resolver/main.go b/cmd/resolver/main.go index 1e456c9..26029aa 100644 --- a/cmd/resolver/main.go +++ b/cmd/resolver/main.go @@ -127,7 +127,7 @@ func messagePrint(nameserver string, msg *dns.Message) string { fmt.Fprintf(&b, "< From: %s", nameserver) fmt.Fprintf(&b, "\n> Header: %+v", msg.Header) - fmt.Fprintf(&b, "\n> Question: %s", msg.Question) + fmt.Fprintf(&b, "\n> Question: %s", msg.Question.String()) b.WriteString("\n> Status:") switch msg.Header.RCode { diff --git a/cmd/resolverbench/main.go b/cmd/resolverbench/main.go index c84023e..0b517a2 100644 --- a/cmd/resolverbench/main.go +++ b/cmd/resolverbench/main.go @@ -53,7 +53,7 @@ func main() { log.Printf(`! Answer not matched %s: expecting: %s got: %s -`, msgs[x].Question, exp, got) +`, msgs[x].Question.String(), exp, got) } } timeEnd := time.Now() -- cgit v1.3