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

@ -468,24 +468,16 @@ bool AFLCoverage::runOnModule(Module &M) {
if (!inst_blocks)
WARNF("No instrumentation targets found.");
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 mode, ratio %u%%).", inst_blocks,
modeline,
inst_ratio);
modeline, inst_ratio);
}
}