From 63ef537b146debbfa7dbe3b52b50976a7701000f Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 11 May 2018 15:48:33 +0200 Subject: sys/syz-extract: improve compier error messages Print each constant on separate line. When compiler prints error messages it prints whole line containing an error. So currently it prints all constants (thousands). With this change it prints just the problematic constant. --- sys/syz-extract/fetch.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/syz-extract/fetch.go b/sys/syz-extract/fetch.go index 0a43e4a9e..47b6db8d3 100644 --- a/sys/syz-extract/fetch.go +++ b/sys/syz-extract/fetch.go @@ -155,7 +155,8 @@ int printf(const char *format, ...); int main() { int i; unsigned long long vals[] = { - {{range $val := $.Values}}(unsigned long long){{$val}},{{end}} + {{range $val := $.Values}}(unsigned long long){{$val}}, + {{end}} }; for (i = 0; i < sizeof(vals)/sizeof(vals[0]); i++) { if (i != 0) -- cgit mrf-deployment