Changeset 15d0046 in mainline for uspace/srv/audio/hound/log.h


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (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 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/log.h

    r8db09e4 r15d0046  
    3737#define LOG_H_
    3838
     39#include <io/log.h>
     40
    3941#ifndef NAME
    4042#define NAME "NONAME"
     
    4345#include <stdio.h>
    4446
    45 #define log_fatal(msg, ...) printf(NAME ": Fatal: " msg "\n", ##__VA_ARGS__);
    46 #define log_error(msg, ...) printf(NAME ": Error: " msg "\n", ##__VA_ARGS__);
    47 #define log_warning(msg, ...) printf(NAME ": Warn: " msg "\n", ##__VA_ARGS__);
    48 #define log_info(msg, ...) printf(NAME ": Info: " msg "\n", ##__VA_ARGS__);
    49 #define log_debug(msg, ...) printf("%s: Debug: %s: " msg "\n", NAME, __FUNCTION__, ##__VA_ARGS__);
    50 #define log_verbose(msg, ...) printf("%s: %s: " msg "\n", NAME, __FUNCTION__, ##__VA_ARGS__);
     47#define log_fatal(...) log_msg(LOG_DEFAULT, LVL_FATAL, ##__VA_ARGS__);
     48#define log_error(...) log_msg(LOG_DEFAULT, LVL_ERROR, ##__VA_ARGS__);
     49#define log_warning(...) log_msg(LOG_DEFAULT, LVL_WARN, ##__VA_ARGS__);
     50#define log_info(...) log_msg(LOG_DEFAULT, LVL_NOTE, ##__VA_ARGS__);
     51#define log_debug(...) log_msg(LOG_DEFAULT, LVL_DEBUG, ##__VA_ARGS__);
     52#define log_verbose(...) log_msg(LOG_DEFAULT, LVL_DEBUG2, ##__VA_ARGS__);
    5153
    5254#endif
Note: See TracChangeset for help on using the changeset viewer.