aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-05-11 15:48:33 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-05-11 15:48:33 +0200
commit63ef537b146debbfa7dbe3b52b50976a7701000f (patch)
treee9cc663f84fc35f29e051e975631c0ba7d36aa2e
parentc8229620ff719e883e1cd10a1541133161bec628 (diff)
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.
-rw-r--r--sys/syz-extract/fetch.go3
1 files changed, 2 insertions, 1 deletions
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)