Changeset f3e2663 in mainline for uspace/lib/c/include/io/log.h


Ignore:
Timestamp:
2011-04-03T11:17:45Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
106743d
Parents:
10eb754 (diff), b2a081ae (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/io/log.h

    r10eb754 rf3e2663  
    11/*
    2  * Copyright (c) 2005 Sergey Bondari
     2 * Copyright (c) 2011 Vojtech Horky
     3 * Copyright (c) 2011 Jiri Svoboda
    34 * All rights reserved.
    45 *
     
    2728 */
    2829
    29 /** @addtogroup amd64
     30/** @addtogroup libc
    3031 * @{
    3132 */
    32 /** @file
    33  */
    3433
    35 #ifndef KERN_amd64_MEMSTR_H_
    36 #define KERN_amd64_MEMSTR_H_
     34#ifndef LIBC_IO_LOG_H_
     35#define LIBC_IO_LOG_H_
    3736
    38 #define memcpy(dst, src, cnt)  __builtin_memcpy((dst), (src), (cnt))
     37#include <stdarg.h>
    3938
    40 extern void memsetw(void *, size_t, uint16_t);
    41 extern void memsetb(void *, size_t, uint8_t);
     39typedef enum {
     40        LVL_FATAL,
     41        LVL_ERROR,
     42        LVL_WARN,
     43        LVL_NOTE,
     44        LVL_DEBUG,
     45        LVL_DEBUG2,
     46
     47        /** For checking range of values */
     48        LVL_LIMIT
     49} log_level_t;
     50
     51extern int log_init(const char *, log_level_t);
     52extern void log_msg(log_level_t, const char *, ...);
     53extern void log_msgv(log_level_t, const char *, va_list);
    4254
    4355#endif
Note: See TracChangeset for help on using the changeset viewer.