fix minor issues in Print calls.
This commit is contained in:
parent
6d5708800f
commit
4cb6f5b6f0
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue