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


Ignore:
Timestamp:
2012-09-07T08:29:43Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
42bde6a
Parents:
70253688
Message:

Add comments to logging interface in libc

File:
1 edited

Legend:

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

    r70253688 re0c836e8  
    3939#include <io/verify.h>
    4040
     41/** Log message level. */
    4142typedef enum {
     43        /** Fatal error, program is not able to recover at all. */
    4244        LVL_FATAL,
     45        /** Serious error but the program can recover from it. */
    4346        LVL_ERROR,
     47        /** Easily recoverable problem. */
    4448        LVL_WARN,
     49        /** Information message that ought to be printed by default. */
    4550        LVL_NOTE,
     51        /** Debugging purpose message. */
    4652        LVL_DEBUG,
     53        /** More detailed debugging message. */
    4754        LVL_DEBUG2,
    4855       
     
    5158} log_level_t;
    5259
     60/** Log itself (logging target). */
    5361typedef sysarg_t log_t;
     62/** Formatting directive for printing log_t. */
    5463#define PRIlogctx PRIxn
     64
     65/** Default log (target). */
    5566#define LOG_DEFAULT ((log_t) -1)
     67
     68/** Use when creating new top-level log. */
    5669#define LOG_NO_PARENT ((log_t) 0)
    5770
Note: See TracChangeset for help on using the changeset viewer.