main: cleanup kmalloc test
This commit is contained in:
parent
82c32011b4
commit
ba332e0e55
1 changed files with 2 additions and 1 deletions
|
|
@ -106,12 +106,13 @@ static void kmalloc_init_test()
|
|||
void *a = kmalloc(0x1000, ALLOC_KERN);
|
||||
kfree(a);
|
||||
void *b = kmalloc(0x1000, ALLOC_KERN);
|
||||
kfree(b);
|
||||
if (a != b) {
|
||||
printf(LOG_DEBUG "kmalloc consistency test failed\n");
|
||||
} else {
|
||||
printf(LOG_DEBUG "kmalloc consistency test passed\n");
|
||||
}
|
||||
|
||||
kfree(b);
|
||||
}
|
||||
#endif /* KDEBUG */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue