Ignore:
File:
1 edited

Legend:

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

    r7f11dc6 r63e27ef  
    102102
    103103#include <assert.h>
    104 #include <errno.h>
    105104#include <synch/spinlock.h>
    106105#include <mm/slab.h>
     
    335334        irq_spinlock_unlock(&cache->slablock, true);
    336335       
    337         if ((cache->constructor) && (cache->constructor(obj, flags) != EOK)) {
     336        if ((cache->constructor) && (cache->constructor(obj, flags))) {
    338337                /* Bad, bad, construction failed */
    339338                slab_obj_destroy(cache, obj, slab);
     
    819818}
    820819
    821 /* Print list of caches */
     820/* Print list of slabs
     821 *
     822 */
    822823void slab_print_list(void)
    823824{
    824         printf("[cache name      ] [size  ] [pages ] [obj/pg] [slabs ]"
     825        printf("[slab name       ] [size  ] [pages ] [obj/pg] [slabs ]"
    825826            " [cached] [alloc ] [ctl]\n");
    826827       
Note: See TracChangeset for help on using the changeset viewer.