Changeset 2b8b0ca in mainline for kernel/generic/src/mm/slab.c


Ignore:
Timestamp:
2008-06-03T14:46:49Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
93a3348
Parents:
0f269c2
Message:

proper printf formatting

File:
1 edited

Legend:

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

    r0f269c2 r2b8b0ca  
    558558        ASSERT(_slab_initialized >= 2);
    559559
    560         cache->mag_cache = malloc(sizeof(slab_mag_cache_t)*config.cpu_count,0);
     560        cache->mag_cache = malloc(sizeof(slab_mag_cache_t) * config.cpu_count,0);
    561561        for (i = 0; i < config.cpu_count; i++) {
    562562                memsetb((uintptr_t)&cache->mag_cache[i],
     
    814814                cache = list_get_instance(cur, slab_cache_t, link);
    815815               
    816                 printf("%-16s %8zd %6zd %6zd %6zd %6zd %9zd %-3s\n", cache->name, cache->size, (1 << cache->order), cache->objects, atomic_get(&cache->allocated_slabs), atomic_get(&cache->cached_objs), atomic_get(&cache->allocated_objs), cache->flags & SLAB_CACHE_SLINSIDE ? "in" : "out");
     816                printf("%-16s %8" PRIs " %6d %6u %6ld %6ld %9ld %-3s\n",
     817                        cache->name, cache->size, (1 << cache->order), cache->objects,
     818                        atomic_get(&cache->allocated_slabs), atomic_get(&cache->cached_objs),
     819                        atomic_get(&cache->allocated_objs), cache->flags & SLAB_CACHE_SLINSIDE ? "in" : "out");
    817820        }
    818821        spinlock_unlock(&slab_cache_lock);
     
    827830        _slab_cache_create(&mag_cache,
    828831                           "slab_magazine",
    829                            sizeof(slab_magazine_t)+SLAB_MAG_SIZE*sizeof(void*),
     832                           sizeof(slab_magazine_t) + SLAB_MAG_SIZE * sizeof(void*),
    830833                           sizeof(uintptr_t),
    831834                           NULL, NULL,
     
    845848
    846849        /* Initialize structures for malloc */
    847         for (i=0, size=(1<<SLAB_MIN_MALLOC_W);
    848              i < (SLAB_MAX_MALLOC_W-SLAB_MIN_MALLOC_W+1);
     850        for (i=0, size=(1 << SLAB_MIN_MALLOC_W);
     851             i < (SLAB_MAX_MALLOC_W - SLAB_MIN_MALLOC_W + 1);
    849852             i++, size <<= 1) {
    850853                malloc_caches[i] = slab_cache_create(malloc_names[i],
Note: See TracChangeset for help on using the changeset viewer.