Changeset 280a27e in mainline for generic/src/mm/frame.c


Ignore:
Timestamp:
2006-04-16T13:16:44Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
50de918
Parents:
c624b96
Message:

Printf ported back from uspace to kernel.
Printf calls changed to match new conventions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/mm/frame.c

    rc624b96 r280a27e  
    281281        zone = (zone_t *) b->data;
    282282        index = frame_index(zone, frame);
    283         printf("%d", index);
     283        printf("%zd", index);
    284284}                                   
    285285
     
    10291029                zone = zones.info[i];
    10301030                spinlock_lock(&zone->lock);
    1031                 printf("%d: %L\t%d\t\t%d\n",i,PFN2ADDR(zone->base),
     1031                printf("%d: %#X \t%zd\t\t%zd\n",i,PFN2ADDR(zone->base),
    10321032                       zone->free_count, zone->busy_count);
    10331033                spinlock_unlock(&zone->lock);
     
    10621062        spinlock_lock(&zone->lock);
    10631063        printf("Memory zone information\n");
    1064         printf("Zone base address: %P\n", PFN2ADDR(zone->base));
    1065         printf("Zone size: %d frames (%dK)\n", zone->count, ((zone->count) * FRAME_SIZE) >> 10);
    1066         printf("Allocated space: %d frames (%dK)\n", zone->busy_count, (zone->busy_count * FRAME_SIZE) >> 10);
    1067         printf("Available space: %d (%dK)\n", zone->free_count, (zone->free_count * FRAME_SIZE) >> 10);
     1064        printf("Zone base address: %#zX\n", PFN2ADDR(zone->base));
     1065        printf("Zone size: %zd frames (%zdK)\n", zone->count, ((zone->count) * FRAME_SIZE) >> 10);
     1066        printf("Allocated space: %zd frames (%zdK)\n", zone->busy_count, (zone->busy_count * FRAME_SIZE) >> 10);
     1067        printf("Available space: %zd (%zdK)\n", zone->free_count, (zone->free_count * FRAME_SIZE) >> 10);
    10681068        buddy_system_structure_print(zone->buddy_system, FRAME_SIZE);
    10691069       
Note: See TracChangeset for help on using the changeset viewer.