Update logging code.

Make the main debug logging routine not open and close the log file
on every single log line. Also, annotate the dbg_printf() with format
__attribute__, so the gcc will issue format/type warnings during
compilation. Also, remove some dead code.

Update WebMImport.cpp to fix the log-line compiler warnings.

Change-Id: I9f0e317387fb616bbe492b85b27c941fe9118414
3 files changed