Bernard Xiong
4373ef2e26
[Utilities] Change the log_trace_init to auto init.
2015-05-05 10:43:15 +08:00
bernard
6045b3a075
[LogTrace] Use OFLAG_RDWR to replace FLAG_RDWR when opening a device.
2014-09-11 12:53:23 +08:00
Grissiom
299cccfb26
logtrace: add log_session_lvl
...
log_session_lvl is suitable for performance critical places where in
most cases, the log is turned off by level. If the session is const and
the level is greater than session->lvl, the whole function will be
optimized out.
2014-04-10 21:22:39 +08:00
Grissiom
12728bcdff
logtrace: add const modifier to the APIs
...
Compiler may do more optimization when the parameter is const.
2014-04-10 21:22:39 +08:00
Grissiom
d0251a523a
log_trace: fix the memmove use
...
The first parameter of memmove is the dst, not src. Besides, fix the
wrong move size.
2013-10-11 17:23:30 +08:00
Grissiom
783a6a6717
logtrace: cleanup code and fix compiling warnings
2013-09-23 13:13:03 +08:00
Grissiom
ea66b820e1
log_trace: cleanup
2013-09-03 16:09:16 +08:00
Bernard Xiong
e156a8d62b
Move logtrace to utilites
2013-06-30 21:51:41 +08:00