mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 12:25:38 +00:00
uefi: make debugging output more readable
This commit is contained in:
parent
e076d48afb
commit
bcd14de89f
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user