Changeset 280a27e in mainline for generic/src/proc


Ignore:
Timestamp:
2006-04-16T13:16:44Z (20 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.

Location:
generic/src/proc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/scheduler.c

    rc624b96 r280a27e  
    450450
    451451#ifdef SCHEDULER_VERBOSE
    452         printf("cpu%d: tid %d (priority=%d,ticks=%d,nrdy=%d)\n", CPU->id, THREAD->tid, THREAD->priority, THREAD->ticks, atomic_get(&CPU->nrdy));
     452        printf("cpu%d: tid %d (priority=%d,ticks=%lld,nrdy=%ld)\n", CPU->id, THREAD->tid, THREAD->priority, THREAD->ticks, atomic_get(&CPU->nrdy));
    453453#endif 
    454454
     
    570570                                spinlock_lock(&t->lock);
    571571#ifdef KCPULB_VERBOSE
    572                                 printf("kcpulb%d: TID %d -> cpu%d, nrdy=%d, avg=%d\n", CPU->id, t->tid, CPU->id, atomic_get(&CPU->nrdy), atomic_get(&nrdy) / config.cpu_active);
     572                                printf("kcpulb%d: TID %d -> cpu%d, nrdy=%ld, avg=%nd\n", CPU->id, t->tid, CPU->id, atomic_get(&CPU->nrdy), atomic_get(&nrdy) / config.cpu_active);
    573573#endif
    574574                                t->flags |= X_STOLEN;
     
    634634
    635635                spinlock_lock(&cpus[cpu].lock);
    636                 printf("cpu%d: address=%P, nrdy=%d, needs_relink=%d\n",
     636                printf("cpu%d: address=%P, nrdy=%ld, needs_relink=%ld\n",
    637637                       cpus[cpu].id, &cpus[cpu], atomic_get(&cpus[cpu].nrdy), cpus[cpu].needs_relink);
    638638               
  • generic/src/proc/task.c

    rc624b96 r280a27e  
    213213               
    214214                        spinlock_lock(&t->lock);
    215                         printf("%s: address=%P, taskid=%Q, as=%P, ActiveCalls: %d",
     215                        printf("%s: address=%#zX, taskid=%#llX, as=%#zX, ActiveCalls: %zd",
    216216                                t->name, t, t->taskid, t->as, atomic_get(&t->active_calls));
    217217                        for (j=0; j < IPC_MAX_PHONES; j++) {
    218218                                if (t->phones[j].callee)
    219                                         printf(" Ph(%d): %P ", j, t->phones[j].callee);
     219                                        printf(" Ph(%zd): %#zX ", j, t->phones[j].callee);
    220220                        }
    221221                        printf("\n");
  • generic/src/proc/thread.c

    rc624b96 r280a27e  
    419419               
    420420                        t = (thread_t *) node->value[i];
    421                         printf("%s: address=%P, tid=%d, state=%s, task=%P, code=%P, stack=%P, cpu=",
     421                        printf("%s: address=%#zX, tid=%zd, state=%s, task=%#zX, code=%#zX, stack=%#zX, cpu=",
    422422                                t->name, t, t->tid, thread_states[t->state], t->task, t->thread_code, t->kstack);
    423423                        if (t->cpu)
    424                                 printf("cpu%d ", t->cpu->id);
     424                                printf("cpu%zd ", t->cpu->id);
    425425                        else
    426426                                printf("none");
Note: See TracChangeset for help on using the changeset viewer.