Fix LOG formatting and defer until emit

Formatting could and should be deferred until logs are emitted.
Boden Russell found a bug where bad formatting practice resulted in
a developer calling format() on the output of a gettextutils call.

Here, we standardize the debugging output in a saner, cleaner way as
recommended by Doug Hellmann.

Closes-Bug: #1242820

Change-Id: I259a435466d394c7d009f8ba2e976713f3fb4343
Merge "Fix LOG formatting and defer until emit"