From: Gang W. <gan...@in...> - 2012-11-27 08:23:19
|
changeset d799ca9fe154 in /hgroot/tboot/tboot details: http://tboot.hg.sourceforge.net:8000/hgroot/tboot/tboot?cmd=changeset;node=d799ca9fe154 description: Add detail log level and the macros defined for log level Signed-off-by:Xiaokai Wang <xia...@in...> diffstat: include/config.h | 3 ++- include/uuid.h | 4 ++++ tboot/common/cmdline.c | 1 + tboot/include/printk.h | 1 + 4 files changed, 8 insertions(+), 1 deletions(-) diffs (49 lines): diff -r 1cec68c61983 -r d799ca9fe154 include/config.h --- a/include/config.h Tue Oct 16 02:13:16 2012 +0800 +++ b/include/config.h Tue Nov 27 14:59:31 2012 +0800 @@ -102,7 +102,8 @@ #define TBOOT_ERR "<1>" #define TBOOT_WARN "<2>" #define TBOOT_INFO "<3>" -#define TBOOT_ALL "<4>" +#define TBOOT_DETA "<4>" +#define TBOOT_ALL "<5>" #endif /* __CONFIG_H__ */ diff -r 1cec68c61983 -r d799ca9fe154 include/uuid.h --- a/include/uuid.h Tue Oct 16 02:13:16 2012 +0800 +++ b/include/uuid.h Tue Nov 27 14:59:31 2012 +0800 @@ -53,6 +53,10 @@ #define PRINT printk #endif +#ifndef TBOOT_DETA +#define TBOOT_DETA "<4>" +#endif + static inline void print_uuid(const uuid_t *uuid) { PRINT("{0x%08x, 0x%04x, 0x%04x, 0x%04x,\n" diff -r 1cec68c61983 -r d799ca9fe154 tboot/common/cmdline.c --- a/tboot/common/cmdline.c Tue Oct 16 02:13:16 2012 +0800 +++ b/tboot/common/cmdline.c Tue Nov 27 14:59:31 2012 +0800 @@ -96,6 +96,7 @@ { "err", TBOOT_LOG_LEVEL_ERR }, { "warn", TBOOT_LOG_LEVEL_WARN }, { "info", TBOOT_LOG_LEVEL_INFO }, + { "detail",TBOOT_LOG_LEVEL_DETA }, { "all", TBOOT_LOG_LEVEL_ALL }, }; diff -r 1cec68c61983 -r d799ca9fe154 tboot/include/printk.h --- a/tboot/include/printk.h Tue Oct 16 02:13:16 2012 +0800 +++ b/tboot/include/printk.h Tue Nov 27 14:59:31 2012 +0800 @@ -42,6 +42,7 @@ #define TBOOT_LOG_LEVEL_ERR 0x01 #define TBOOT_LOG_LEVEL_WARN 0x02 #define TBOOT_LOG_LEVEL_INFO 0x04 +#define TBOOT_LOG_LEVEL_DETA 0x08 #define TBOOT_LOG_LEVEL_ALL 0xFF #define TBOOT_LOG_TARGET_NONE 0x00 |