code format

This commit is contained in:
Andrea Fioraldi
2020-02-16 13:21:39 +01:00
parent 8acd503526
commit ef00ed6090
7 changed files with 50 additions and 73 deletions

View File

@ -479,27 +479,19 @@ static void add_instrumentation(void) {
WARNF("No instrumentation targets found%s.",
pass_thru ? " (pass-thru mode)" : "");
else {
char modeline[100];
snprintf(modeline, sizeof(modeline), "%s%s%s%s",
getenv("AFL_HARDEN")
? "hardened"
: "non-hardened",
getenv("AFL_USE_ASAN")
? ", ASAN"
: "",
getenv("AFL_USE_MSAN")
? ", MSAN"
: "",
getenv("AFL_USE_UBSAN")
? ", UBSAN"
: ""
);
snprintf(modeline, sizeof(modeline), "%s%s%s%s",
getenv("AFL_HARDEN") ? "hardened" : "non-hardened",
getenv("AFL_USE_ASAN") ? ", ASAN" : "",
getenv("AFL_USE_MSAN") ? ", MSAN" : "",
getenv("AFL_USE_UBSAN") ? ", UBSAN" : "");
OKF("Instrumented %u locations (%s-bit, %s mode, ratio %u%%).", ins_lines,
use_64bit ? "64" : "32",
modeline,
inst_ratio);
use_64bit ? "64" : "32", modeline, inst_ratio);
}
}
}