From 508058c3d7c5ab50887d338debd3e33bb4cc5420 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Mon, 20 Feb 2023 11:18:59 -0800 Subject: [PATCH] [uefi_fb] Fix log messages not showing in drv.uefi_fb Also add drv.uefi_fb to the default manifest. --- assets/manifests/default.yaml | 1 + src/user/drv.uefi_fb/main.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/manifests/default.yaml b/assets/manifests/default.yaml index cdee1f1..1205c25 100644 --- a/assets/manifests/default.yaml +++ b/assets/manifests/default.yaml @@ -11,3 +11,4 @@ services: - testapp drivers: - drv.uart + - drv.uefi_fb diff --git a/src/user/drv.uefi_fb/main.cpp b/src/user/drv.uefi_fb/main.cpp index 06ae627..f3f7972 100644 --- a/src/user/drv.uefi_fb/main.cpp +++ b/src/user/drv.uefi_fb/main.cpp @@ -85,7 +85,7 @@ driver_main(unsigned argc, const char **argv, const char **env, const j6_init_ar scrollback scroll(rows, cols); int pending = 0; - constexpr int pending_threshold = 5; + static constexpr int pending_threshold = 0; size_t buffer_size = 0; void *message_buffer = nullptr; @@ -111,6 +111,7 @@ driver_main(unsigned argc, const char **argv, const char **env, const j6_init_ar size_t eom = e->bytes - sizeof(j6_log_entry); e->message[eom] = 0; + seen = e->id; scroll.add_line(e->message, eom); if (++pending > pending_threshold) {