Get rid of writefmt functions
This commit is contained in:
@ -2,7 +2,6 @@
|
||||
#define ULIB_LOG_H_
|
||||
|
||||
#include <uprintf.h>
|
||||
#include <write/write.h>
|
||||
|
||||
enum {
|
||||
LOG_ERR,
|
||||
@ -13,6 +12,6 @@ enum {
|
||||
|
||||
static const char *_LOG_STR[] = { "ERROR", "DEBUG", "INFO", "WARNING" };
|
||||
|
||||
#define LOG(mode, fmt, ...) writefmt("{s}: "fmt, _LOG_STR[(mode)], ##__VA_ARGS__);
|
||||
#define LOG(mode, fmt, ...) uprintf("%s: "fmt, _LOG_STR[(mode)], ##__VA_ARGS__);
|
||||
|
||||
#endif // ULIB_LOG_H_
|
||||
|
Reference in New Issue
Block a user