projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add view menu option to view/hide SFR memory dump window
[emu8051.git]
/
src
/
log.h
diff --git
a/src/log.h
b/src/log.h
index
f305797
..
6b3e2e9
100644
(file)
--- a/
src/log.h
+++ b/
src/log.h
@@
-21,15
+21,12
@@
#include "common.h"
enum LOG_LEVEL {
#include "common.h"
enum LOG_LEVEL {
- LOG_LEVEL_ERR
,
- LOG_LEVEL_WARN,
- LOG_LEVEL_INFO,
- LOG_LEVEL_DEBUG
+ LOG_LEVEL_ERR
= 0, /* Display only errors */
+ LOG_LEVEL_WARN,
/* Display warnings */
+ LOG_LEVEL_INFO,
/* Display information messages */
+ LOG_LEVEL_DEBUG
, /* Display all messages */
};
};
-void
-log_set_level(int new_log_level);
-
void
log_debug(const char *format, ...);
void
log_debug(const char *format, ...);
@@
-40,9
+37,10
@@
void
log_warn(const char *format, ...);
void
log_warn(const char *format, ...);
void
-log_
fail
(const char *format, ...);
+log_
err
(const char *format, ...);
+/* Log error message and exits with error code. */
void
void
-log_fail
_no_exit
(const char *format, ...);
+log_fail(const char *format, ...);
#endif /* LOG_H */
#endif /* LOG_H */