mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
fix output of size class offset test
This commit is contained in:
parent
15e5e2d0ac
commit
71d52d981e
2 changed files with 8 additions and 1 deletions
7
test/Makefile
Normal file
7
test/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
EXECUTABLES := \
|
||||||
|
offset
|
||||||
|
|
||||||
|
all: $(EXECUTABLES)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(EXECUTABLES)
|
|
@ -30,7 +30,7 @@ int main(void) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (i != 0) {
|
if (i != 0) {
|
||||||
printf("%zu to %zu: %zd\n", size_classes[i - 1], size, p[i - 1] - p[i]);
|
printf("%zu to %zu: %zd\n", size_classes[i - 1], size, p[i] - p[i - 1]);
|
||||||
}
|
}
|
||||||
printf("%zu to %zu: %zd\n", size, size, q - p[i]);
|
printf("%zu to %zu: %zd\n", size, size, q - p[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue