]> git.ozlabs.org Git - petitboot/commitdiff
lib/log: Cleanup log API
authorJeremy Kerr <jk@ozlabs.org>
Thu, 19 Sep 2013 04:18:56 +0000 (12:18 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 19 Sep 2013 13:36:32 +0000 (21:36 +0800)
Rather than exposing log internals (through always_flush and
set_stream), do all logging init through pb_log_init(). If pb_log_init()
hasn't been called, pb_log will drop messages.

Also, add a pb_debug() function, specifically for debugging information.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found