Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/slab.c

    r63e27ef r7f11dc6  
    102102
    103103#include <assert.h>
     104#include <errno.h>
    104105#include <synch/spinlock.h>
    105106#include <mm/slab.h>
     
    334335        irq_spinlock_unlock(&cache->slablock, true);
    335336       
    336         if ((cache->constructor) && (cache->constructor(obj, flags))) {
     337        if ((cache->constructor) && (cache->constructor(obj, flags) != EOK)) {
    337338                /* Bad, bad, construction failed */
    338339                slab_obj_destroy(cache, obj, slab);
     
    818819}
    819820
    820 /* Print list of slabs
    821  *
    822  */
     821/* Print list of caches */
    823822void slab_print_list(void)
    824823{
    825         printf("[slab name       ] [size  ] [pages ] [obj/pg] [slabs ]"
     824        printf("[cache name      ] [size  ] [pages ] [obj/pg] [slabs ]"
    826825            " [cached] [alloc ] [ctl]\n");
    827826       
Note: See TracChangeset for help on using the changeset viewer.