]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: Use puts() in cout so that console recording works
authorSimon Glass <sjg@chromium.org>
Mon, 2 Sep 2024 01:18:12 +0000 (19:18 -0600)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 12 Sep 2024 15:36:24 +0000 (17:36 +0200)
At present EFI output to the console uses fputs() which bypasses the
console-recording feature. This makes it impossible for tests to check
the output of an EFI app.

There doesn't seem to be any need to do this bypass, so adjust it to
simply use the puts() function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_console.c

index c944c10b216263cbd1baefa34410acb8de94657e..cea50c748aa315b9ea511bfce3a81d08e0933878 100644 (file)
@@ -181,7 +181,7 @@ static efi_status_t EFIAPI efi_cout_output_string(
        }
        pos = buf;
        utf16_utf8_strcpy(&pos, string);
-       fputs(stdout, buf);
+       puts(buf);
        free(buf);
 
        /*