From 4cb6f5b6f0694bb1a9efdbd4a090f2e5ab884877 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sun, 19 May 2024 20:51:35 -0700 Subject: [PATCH] fix minor issues in Print calls. --- cmd/host/main.go | 2 +- cmd/zsearch/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/host/main.go b/cmd/host/main.go index 856fbbd..112cf81 100644 --- a/cmd/host/main.go +++ b/cmd/host/main.go @@ -35,7 +35,7 @@ func main() { for _, arg := range flag.Args() { if err := lookupHost(arg); err != nil { - log.Println("%s: %s", arg, err) + log.Printf("%s: %s", arg, err) } } } diff --git a/cmd/zsearch/main.go b/cmd/zsearch/main.go index c2c9adc..af6e6aa 100644 --- a/cmd/zsearch/main.go +++ b/cmd/zsearch/main.go @@ -68,7 +68,7 @@ func showFile(path string) { func searchFile(path string, search *regexp.Regexp) error { file, err := os.Open(path) if err != nil { - errorf("%v") + errorf("%v", err) return err } defer file.Close()