Fix custom logging function

o_log is now a fixed function doing all the rate limitation and
timestamping, before handing over to whatever logging function has been
supplied. None of the vlog functions exist anymore (a static one remains
to do the actual job)

fixes: #943 @2
refs: #1100

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Introduce o_log_level_active()

This allows to abstract the logic of testing log levels.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Remove unneeded include

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Better logging logic, and updated test

refs: #943

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Add db_typemap type in database.h

This way, database adapters have a common mapping structure to use,
rather than redefining the same one.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Fixup doxumentation of structure fields

The Doxumentation needs to appear before.  Fields cannot be documented
at the end of the line.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Introduce mbuf_[rd|wr]_remaining, strat deprecating mbuf_remaining

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Use die() everywhere in the server

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Fix regression with o_log

o_log is declared as an extern o_log_fn pointer, rather than a normal
function.  This is how it was done in pre-2.10 OML, and not doing so
causes regressions with applications compiled against earlier versions.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Merge branch 'issue943-log' into staging