Ignore:
File:
1 edited

Legend:

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

    r57a2208 r737b4c0  
    3737#define LOG_H_
    3838
    39 #include <io/log.h>
    40 
    4139#ifndef NAME
    4240#define NAME "NONAME"
     
    4543#include <stdio.h>
    4644
    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__);
     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__);
    5351
    5452#endif
Note: See TracChangeset for help on using the changeset viewer.