Changeset c19a4169 in mainline


Ignore:
Timestamp:
2009-01-31T14:22:06Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2425349
Parents:
1e241723
Message:

more decent kconsole output without stdin

File:
1 edited

Legend:

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

    r1e241723 rc19a4169  
    7373#include <synch/spinlock.h>
    7474
     75#define ALIVE_CHARS  4
     76
     77static char alive[ALIVE_CHARS] = "-\\|/";
     78
    7579/** Kernel initialization thread.
    7680 *
     
    205209#ifdef CONFIG_KCONSOLE
    206210        if (!stdin) {
     211                thread_sleep(10);
    207212                printf("kinit: No stdin\nKernel alive: ");
    208213               
    209                 uint64_t i = 0;
    210                 while (1) {
    211                         printf("%" PRIu64 " ", i);
     214                unsigned int i = 0;
     215                while (true) {
     216                        printf("\b%c", alive[i % ALIVE_CHARS]);
    212217                        thread_sleep(1);
    213218                        i++;
Note: See TracChangeset for help on using the changeset viewer.