From 7fccb8719006945526cffda39c3cb4150c56091b Mon Sep 17 00:00:00 2001 From: Samuel Aubertin Date: Mon, 24 Jan 2022 14:13:14 +0100 Subject: [PATCH] Cleanup output and add padding --- spectre.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spectre.c b/spectre.c index 0074379..bc2e4ce 100644 --- a/spectre.c +++ b/spectre.c @@ -283,9 +283,10 @@ main( } } fprintf(stderr, "\n"); - printf("%s:\tsuccess= %.0f %%\tthreshold= %d ms\n", + printf("%-40s\tthreshold %-3d ms\tsuccess %3.0f %%\n", argv[0] + 2, - 100 * successes / (float)strlen(secret), cache_hit_threshold); + cache_hit_threshold, + 100 * successes / (float)strlen(secret)); return 0; }