From: Michael Tremer Date: Tue, 9 Aug 2022 16:23:08 +0000 (+0000) Subject: command: Show how much memory we managed to allocate X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb6c638fe054fdc9895e585c646f94892c2e87a0;p=people%2Fstevee%2Fpakfire.git command: Show how much memory we managed to allocate Signed-off-by: Michael Tremer --- diff --git a/tests/stub/command.c b/tests/stub/command.c index 92dece54..29a24559 100644 --- a/tests/stub/command.c +++ b/tests/stub/command.c @@ -106,6 +106,8 @@ static int exhaust_memory(int argc, char* argv[]) { break; bytes += block; + + printf("Allocated %zu MiB\n", bytes / block); } printf("Successfully allocated %f MiB\n", (double)bytes / 1048576);