Fix misuses of format based logging functions

Signed-off-by: Tõnis Tiigi <tonistiigi@gmail.com> (github: tonistiigi)
Merge pull request #9251 from tonistiigi/use-format-logging-functions

Fix misuses of format based logging functions