diff options
author | wdenk <wdenk> | 2002-12-08 09:53:23 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2002-12-08 09:53:23 +0000 |
commit | 228f29ac6e0026e596b3a6fbb640118b9944cdd8 (patch) | |
tree | f379b80d2d4be7cf9f25bd59156e53cb00faaf72 /include/logbuff.h | |
parent | 7c7a23bd5a0bc149d2edd665ec46381726b24e0c (diff) | |
download | u-boot-228f29ac6e0026e596b3a6fbb640118b9944cdd8.tar.gz u-boot-228f29ac6e0026e596b3a6fbb640118b9944cdd8.tar.xz u-boot-228f29ac6e0026e596b3a6fbb640118b9944cdd8.zip |
* Improve log buffer code; use "loglevel" to decide which messages
to log on the console, too (like in Linux); get rid of "logstart"
Diffstat (limited to 'include/logbuff.h')
-rw-r--r-- | include/logbuff.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/logbuff.h b/include/logbuff.h index 37445096a9..3acfc18a78 100644 --- a/include/logbuff.h +++ b/include/logbuff.h @@ -25,9 +25,15 @@ #ifdef CONFIG_LOGBUFFER -#define LOGBUFF_TEST0 0x01 +#define LOGBUFF_LEN (16384) /* Must be 16k right now */ +#define LOGBUFF_MASK (LOGBUFF_LEN-1) +#define LOGBUFF_OVERHEAD (4096) /* Logbuffer overhead for extra info */ +#define LOGBUFF_RESERVE (LOGBUFF_LEN+LOGBUFF_OVERHEAD) + +#define LOGBUFF_INITIALIZED (1<<31) int drv_logbuff_init (void); +void logbuff_init_ptrs (void); void logbuff_log(char *msg); void logbuff_reset (void); |