fix minor issues in Print calls.

This commit is contained in:
Kyle Isom 2024-05-19 20:51:35 -07:00
parent 6d5708800f
commit 4cb6f5b6f0
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}
}

View File

@ -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()