Changeset a801688b in mainline for uspace/lib/c/include/stdio.h


Ignore:
Timestamp:
2012-11-23T20:25:27Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ec85df0
Parents:
2f33fbc
Message:

Make the SYS_KLOG interface more generic.

  • Define klog methods KLOG_WRITE, KLOG_UPDATE and KLOG_COMMAND.
  • KLOG_COMMAND is to be used to feed commands to the kconsole thread.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/stdio.h

    r2f33fbc ra801688b  
    4040#include <str.h>
    4141#include <io/verify.h>
     42#include <abi/klog.h>
    4243
    4344#define EOF  (-1)
     
    5152                int _n = snprintf(_buf, sizeof(_buf), fmt, ##__VA_ARGS__); \
    5253                if (_n > 0) \
    53                         (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) _buf, str_size(_buf)); \
     54                        (void) __SYSCALL3(SYS_KLOG, KLOG_WRITE, (sysarg_t) _buf, str_size(_buf)); \
    5455        }
    5556
Note: See TracChangeset for help on using the changeset viewer.