split havoc/custom line in status screen
MODIFY
src/afl-fuzz-stats.c
src/afl-fuzz-stats.c
@@ -576,15 +576,12 @@ void show_stats(void) {
" imported : " cRST "%-10s" bSTG bV "\n",
tmp, sync_id ? DI(queued_imported) : (u8*)"n/a");
- sprintf(tmp, "%s/%s, %s/%s, %s/%s, %s/%s, %s/%s",
+ sprintf(tmp, "%s/%s, %s/%s, %s/%s",
DI(stage_finds[STAGE_HAVOC]), DI(stage_cycles[STAGE_HAVOC]),
DI(stage_finds[STAGE_SPLICE]), DI(stage_cycles[STAGE_SPLICE]),
- DI(stage_finds[STAGE_PYTHON]), DI(stage_cycles[STAGE_PYTHON]),
- DI(stage_finds[STAGE_RADAMSA]), DI(stage_cycles[STAGE_RADAMSA]),
- DI(stage_finds[STAGE_CUSTOM_MUTATOR]),
- DI(stage_cycles[STAGE_CUSTOM_MUTATOR]));
+ DI(stage_finds[STAGE_RADAMSA]), DI(stage_cycles[STAGE_RADAMSA]));
- SAYF(bV bSTOP "havoc/custom : " cRST "%-36s " bSTG bV bSTOP, tmp);
+ SAYF(bV bSTOP " havoc/rad : " cRST "%-36s " bSTG bV bSTOP, tmp);
if (t_bytes)
sprintf(tmp, "%0.02f%%", stab_ratio);
@@ -599,6 +596,14 @@ void show_stats(void) {
: cRST),
tmp);
+ sprintf(tmp, "%s/%s, %s/%s",
+ DI(stage_finds[STAGE_PYTHON]), DI(stage_cycles[STAGE_PYTHON]),
+ DI(stage_finds[STAGE_CUSTOM_MUTATOR]),
+ DI(stage_cycles[STAGE_CUSTOM_MUTATOR]));
+
+ SAYF(bV bSTOP " py/custom : " cRST "%-36s " bSTG bVR bH20 bH2 bH bRB
+ "\n", tmp);
+
if (!bytes_trim_out) {
sprintf(tmp, "n/a, ");
@@ -634,14 +639,12 @@ void show_stats(void) {
sprintf(tmp, "%s/%s", DI(stage_finds[STAGE_CUSTOM_MUTATOR]),
DI(stage_cycles[STAGE_CUSTOM_MUTATOR]));
- SAYF(bV bSTOP " custom mut. : " cRST "%-36s " bSTG bVR bH20 bH2 bH bRB
- "\n" bLB bH30 bH20 bH2 bH bRB bSTOP cRST RESET_G1,
+ SAYF(bV bSTOP " custom mut. : " cRST "%-36s " bSTG bV RESET_G1,
tmp);
} else {
- SAYF(bV bSTOP " trim : " cRST "%-36s " bSTG bVR bH20 bH2 bH bRB
- "\n" bLB bH30 bH20 bH2 bRB bSTOP cRST RESET_G1,
+ SAYF(bV bSTOP " trim : " cRST "%-36s " bSTG bV RESET_G1,
tmp);
}
@@ -689,6 +692,9 @@ void show_stats(void) {
SAYF("\r");
+ /* Last line */
+ SAYF(SET_G1 "\n" bSTG bLB bH30 bH20 bH2 bRB bSTOP cRST RESET_G1);
+
/* Hallelujah! */
fflush(0);

split havoc/custom line in status screen