tools/loggraphdiff: Fix vet warnings

This commit is contained in:
Martin Atkins 2018-10-13 10:49:50 -07:00
parent 275a44f552
commit aafa3ced07

View File

@ -49,11 +49,11 @@ func main() {
old, err := readGraph(os.Args[1])
if err != nil {
log.Fatal("failed to read %s: %s", os.Args[1], err)
log.Fatalf("failed to read %s: %s", os.Args[1], err)
}
new, err := readGraph(os.Args[2])
if err != nil {
log.Fatal("failed to read %s: %s", os.Args[1], err)
log.Fatalf("failed to read %s: %s", os.Args[1], err)
}
var nodes []string
@ -84,7 +84,7 @@ func main() {
})
fmt.Println("digraph G {")
fmt.Println(" rankdir = \"BT\";\n")
fmt.Print(" rankdir = \"BT\";\n\n")
for _, n := range nodes {
var attrs string
_, inOld := old.nodes[n]