fix log format string mismatches that produce wrong or mangled output
