From 8fabdd09a55e26bc340666837cd3be0744c1e1d9 Mon Sep 17 00:00:00 2001 From: Fumitoshi Ukai Date: Mon, 8 Jun 2015 10:27:47 +0900 Subject: fix go vet: possible formatting directive in Log call rename Log to Logf, since it takes format string in the first argument. --- ast.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ast.go') diff --git a/ast.go b/ast.go index 0416306..7ab8137 100644 --- a/ast.go +++ b/ast.go @@ -64,7 +64,7 @@ func (ast *AssignAST) evalRHS(ev *Evaluator, lhs string) Var { } func (ast *AssignAST) show() { - Log("%s %s %s %q", ast.opt, ast.lhs, ast.op, ast.rhs) + Logf("%s %s %s %q", ast.opt, ast.lhs, ast.op, ast.rhs) } // Note we cannot be sure what this is, until all variables in |expr| @@ -81,7 +81,7 @@ func (ast *MaybeRuleAST) eval(ev *Evaluator) { } func (ast *MaybeRuleAST) show() { - Log("%s", ast.expr) + Logf("%s", ast.expr) } type CommandAST struct { @@ -94,7 +94,7 @@ func (ast *CommandAST) eval(ev *Evaluator) { } func (ast *CommandAST) show() { - Log("\t%s", strings.Replace(ast.cmd, "\n", `\n`, -1)) + Logf("\t%s", strings.Replace(ast.cmd, "\n", `\n`, -1)) } type IncludeAST struct { @@ -108,7 +108,7 @@ func (ast *IncludeAST) eval(ev *Evaluator) { } func (ast *IncludeAST) show() { - Log("include %s", ast.expr) + Logf("include %s", ast.expr) } type IfAST struct { @@ -126,7 +126,7 @@ func (ast *IfAST) eval(ev *Evaluator) { func (ast *IfAST) show() { // TODO - Log("if") + Logf("if") } type ExportAST struct { @@ -141,5 +141,5 @@ func (ast *ExportAST) eval(ev *Evaluator) { func (ast *ExportAST) show() { // TODO - Log("export") + Logf("export") } -- cgit v1.2.3