uefi: make debugging output more readable

This commit is contained in:
Mario Limonciello 2020-02-10 11:29:37 -06:00 committed by Mario Limonciello
parent e076d48afb
commit bcd14de89f

View File

@ -58,12 +58,12 @@ fwup_log(FwupLogLevel level, const char *func, const char *file, const int line,
if (debugging) { if (debugging) {
_cleanup_free CHAR16 *out1 = NULL; _cleanup_free CHAR16 *out1 = NULL;
out1 = PoolPrint(L"%a:%d:%a(): %s", file, line, func, tmp); out1 = PoolPrint(L"%a:%d:%a(): %s\n", file, line, func, tmp);
if (out1 == NULL) { if (out1 == NULL) {
Print(L"fwupdate: Allocation for debug log failed!\n"); Print(L"fwupdate: Allocation for debug log failed!\n");
return; return;
} }
Print(L"%s\n", out1); Print(L"%s", out1);
fwupd_debug_efivar_append(out1); fwupd_debug_efivar_append(out1);
} else { } else {
switch (level) { switch (level) {