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)
commit307b4b091e0bc298964e90888bf179431e32c134
tree47cc758b0929eb29a216efd945b9ad46f4ffb19a
parente52b37c27c267c882d82cd1e34412817b5a4dbce
lib/log: Cleanup log API

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>
discover/pb-discover.c
lib/log/log.c
lib/log/log.h
test/urls/parse-url.c
ui/ncurses/generic-main.c
ui/twin/main-generic.c