Changeset f88fcbe in mainline


Ignore:
Timestamp:
2006-12-13T14:56:17Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c3b797
Parents:
f19d77a
Message:

more fancy kconsole output

Location:
kernel/generic/src
Files:
2 edited

Legend:

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

    rf19d77a rf88fcbe  
    10991099        ipl = interrupts_disable();
    11001100        spinlock_lock(&zones.lock);
    1101         printf("#  Base address\tFree Frames\tBusy Frames\n");
    1102         printf("   ------------\t-----------\t-----------\n");
     1101        printf("#  base address free frames  busy frames\n");
     1102        printf("-- ------------ ------------ ------------\n");
    11031103        for (i = 0; i < zones.count; i++) {
    11041104                zone = zones.info[i];
    11051105                spinlock_lock(&zone->lock);
    1106                 printf("%d: %.*p \t%10zd\t%10zd\n", i, sizeof(uintptr_t) * 2, PFN2ADDR(zone->base), zone->free_count, zone->busy_count);
     1106                printf("%-2d %12p %12zd %12zd\n", i, PFN2ADDR(zone->base), zone->free_count, zone->busy_count);
    11071107                spinlock_unlock(&zone->lock);
    11081108        }
  • kernel/generic/src/proc/task.c

    rf19d77a rf88fcbe  
    344344        ipl = interrupts_disable();
    345345        spinlock_lock(&tasks_lock);
     346       
     347        printf("taskid name       ctx address    as         active calls callee\n");
     348        printf("------ ---------- --- ---------- ---------- ------------ ------>\n");
    346349
    347350        for (cur = tasks_btree.leaf_head.next; cur != &tasks_btree.leaf_head; cur = cur->next) {
     
    357360               
    358361                        spinlock_lock(&t->lock);
    359                         printf("%s(%lld): context=%ld, address=%#zx, as=%#zx, ActiveCalls: %zd",
    360                                 t->name, t->taskid, t->context, t, t->as, atomic_get(&t->active_calls));
    361                         for (j=0; j < IPC_MAX_PHONES; j++) {
     362                        printf("%-6lld %-10s %-3ld %#10zx %#10zx %12zd", t->taskid, t->name, t->context, t, t->as, atomic_get(&t->active_calls));
     363                        for (j = 0; j < IPC_MAX_PHONES; j++) {
    362364                                if (t->phones[j].callee)
    363                                         printf(" Ph(%zd): %#zx ", j, t->phones[j].callee);
     365                                        printf(" %zd:%#zx", j, t->phones[j].callee);
    364366                        }
    365367                        printf("\n");
Note: See TracChangeset for help on using the changeset viewer.