Ignore:
Timestamp:
2009-04-24T08:01:05Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
402de0c
Parents:
ab1861a
Message:

use buffering for klog output (this can be used to avoid the ugly usleeps while starting tasks)
unify and cleanup console.c and related files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/io/vprintf.c

    rab1861a r566f4cfb  
    3939#include <futex.h>
    4040#include <async.h>
     41#include <console.h>
    4142
    4243static atomic_t printf_futex = FUTEX_INITIALIZER;
     
    5152                prev = offset;
    5253                str_decode(str, &offset, size);
    53                 write_stdout(str + prev, offset - prev);
     54                console_write(str + prev, offset - prev);
    5455                chars++;
    5556        }
     
    6869                boff = 0;
    6970                chr_encode(str[chars], buf, &boff, 4);
    70                 write_stdout(buf, boff);
     71                console_write(buf, boff);
    7172                chars++;
    7273                offset += sizeof(wchar_t);
Note: See TracChangeset for help on using the changeset viewer.