Changeset 1e9d0e3 in mainline


Ignore:
Timestamp:
2008-06-21T10:57:51Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a48bcd
Parents:
46c1234
Message:

cstyle for kinit.c and scheduler.c

Location:
kernel/generic/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/kinit.c

    r46c1234 r1e9d0e3  
    147147         * Create kernel console.
    148148         */
    149         t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole", false);
     149        t = thread_create(kconsole, (void *) "kconsole", TASK, 0, "kconsole",
     150            false);
    150151        if (t)
    151152                thread_ready(t);
     
    167168                }
    168169
    169                 threads[i] = thread_create_program(
    170                         (void *) init.tasks[i].addr, "uspace");
     170                threads[i] = thread_create_program((void *) init.tasks[i].addr,
     171                    "uspace");
    171172               
    172173                if (threads[i] != NULL) {
     
    184185                       
    185186                        if (rd != RE_OK)
    186                                 printf("Init binary %" PRIc " not used, error code %d.\n", i, rd);
     187                                printf("Init binary %" PRIc " not used, error "
     188                                    "code %d.\n", i, rd);
    187189                }
    188190        }
  • kernel/generic/src/proc/scheduler.c

    r46c1234 r1e9d0e3  
    452452                         * Entering state is unexpected.
    453453                         */
    454                         panic("tid%" PRIu64 ": unexpected state %s\n", THREAD->tid,
    455                             thread_states[THREAD->state]);
     454                        panic("tid%" PRIu64 ": unexpected state %s\n",
     455                            THREAD->tid, thread_states[THREAD->state]);
    456456                        break;
    457457                }
     
    505505
    506506#ifdef SCHEDULER_VERBOSE
    507         printf("cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64 ", nrdy=%ld)\n",
    508             CPU->id, THREAD->tid, THREAD->priority, THREAD->ticks,
    509             atomic_get(&CPU->nrdy));
     507        printf("cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64
     508            ", nrdy=%ld)\n", CPU->id, THREAD->tid, THREAD->priority,
     509            THREAD->ticks, atomic_get(&CPU->nrdy));
    510510#endif 
    511511
     
    641641                                spinlock_lock(&t->lock);
    642642#ifdef KCPULB_VERBOSE
    643                                 printf("kcpulb%u: TID %" PRIu64 " -> cpu%u, nrdy=%ld, "
    644                                     "avg=%ld\n", CPU->id, t->tid, CPU->id,
    645                                     atomic_get(&CPU->nrdy),
     643                                printf("kcpulb%u: TID %" PRIu64 " -> cpu%u, "
     644                                    "nrdy=%ld, avg=%ld\n", CPU->id, t->tid,
     645                                    CPU->id, atomic_get(&CPU->nrdy),
    646646                                    atomic_get(&nrdy) / config.cpu_active);
    647647#endif
Note: See TracChangeset for help on using the changeset viewer.