aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2019-12-26 21:49:48 +0700
committerShulhan <m.shulhan@gmail.com>2019-12-26 21:49:48 +0700
commit45b48e0c69bfee339f29e8aecbc3c5af64c2b1d4 (patch)
treeb1ddfa792cb4979729f342f186b3df4689de6e9b /cmd
parent16eb87f5eded5a7f143b045f9a3d3e66c9836290 (diff)
downloadrescached-45b48e0c69bfee339f29e8aecbc3c5af64c2b1d4.tar.xz
cmd: fix formatting arguments
Diffstat (limited to 'cmd')
-rw-r--r--cmd/resolver/main.go2
-rw-r--r--cmd/resolverbench/main.go2
2 files changed, 2 insertions, 2 deletions
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()