From 8e3ab94116d1518722c1b341ce88a81b957e90be Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Mon, 15 Jun 2020 05:13:42 +0200 Subject: executor: Improve used terminology Improve used terminology by using better verbs to express the effect of the whitelist/blacklist. This also changes executor to exclusively show respectful log messages, and as per recent conversion, converts the last such case. --- executor/common_linux.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index e4793f421..c4b3f052f 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3496,15 +3496,16 @@ static void setup_kcsan() } #if SYZ_EXECUTOR // currently only used by executor -static void setup_kcsan_filterlist(char** frames, int nframes, bool ignore) +static void setup_kcsan_filterlist(char** frames, int nframes, bool suppress) { int fd = open(KCSAN_DEBUGFS_FILE, O_WRONLY); if (fd == -1) fail("failed to open(\"%s\")", KCSAN_DEBUGFS_FILE); - const char* const filtertype = ignore ? "blacklist" : "whitelist"; - printf("adding functions to KCSAN %s: ", filtertype); - dprintf(fd, "%s\n", filtertype); + printf("%s KCSAN reports in functions: ", + suppress ? "suppressing" : "only showing"); + if (!suppress) + dprintf(fd, "whitelist\n"); for (int i = 0; i < nframes; ++i) { printf("'%s' ", frames[i]); dprintf(fd, "!%s\n", frames[i]); -- cgit mrf-deployment