From 3f85f7fc461822add5e7d771e4be332f3d7891d7 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 6 Nov 2017 22:37:10 -0800 Subject: syz-extract: fix printf conditional in template commit 3520854be0e7 ("syz-extract: select declaring printf or not") broke 'make extract' because it introduced invalid syntax in a text template. Fix it. --- sys/syz-extract/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/syz-extract/fetch.go b/sys/syz-extract/fetch.go index 13fb5e519..44b82cf8c 100644 --- a/sys/syz-extract/fetch.go +++ b/sys/syz-extract/fetch.go @@ -146,7 +146,7 @@ var srcTemplate = template.Must(template.New("").Parse(` {{.AddSource}} -{{.DeclarePrintf}} +{{if .DeclarePrintf}} int printf(const char *format, ...); {{end}} -- cgit mrf-deployment