Changes between Version 2 and Version 3 of SrlApi
- Timestamp:
- Feb 1, 2007, 2:40:36 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SrlApi
v2 v3 7 7 Log API let you define message levels. Levels allow you to let your debug code in the source, and only compile it when needed. 8 8 9 In order, levels are: 10 * NONE 11 * TRACE 12 * DEBUG 13 * MAX 14 15 When writing your software, you decide what level the message is for. When compiling or running you software, you decide what minimal level your code must have to be printed. 16 9 17 * {{{srl_log(level, "message")}}} prints a message 10 18 * {{{srl_log_printf(level, "message_with_format", arguments...)}}} prints a printf-like message 19 20 Arguments in printf-like version may be not evaluated if level is not sufficient. Therefore you '''MUST NOT''' put expressions with side effects in the parameter list. ie do '''not''' do this: 21 {{{ 22 srl_log_printf(DEBUG, "i=%d\n", i++); 23 }}} 11 24 12 25 == Mwmr fifos ==