[uefi_fb] Fix log messages not showing in drv.uefi_fb

Also add drv.uefi_fb to the default manifest.
This commit is contained in:
Justin C. Miller
2023-02-20 11:18:59 -08:00
parent 4c9ff44b1c
commit 508058c3d7
2 changed files with 3 additions and 1 deletions

View File

@@ -11,3 +11,4 @@ services:
- testapp - testapp
drivers: drivers:
- drv.uart - drv.uart
- drv.uefi_fb

View File

@@ -85,7 +85,7 @@ driver_main(unsigned argc, const char **argv, const char **env, const j6_init_ar
scrollback scroll(rows, cols); scrollback scroll(rows, cols);
int pending = 0; int pending = 0;
constexpr int pending_threshold = 5; static constexpr int pending_threshold = 0;
size_t buffer_size = 0; size_t buffer_size = 0;
void *message_buffer = nullptr; 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); size_t eom = e->bytes - sizeof(j6_log_entry);
e->message[eom] = 0; e->message[eom] = 0;
seen = e->id;
scroll.add_line(e->message, eom); scroll.add_line(e->message, eom);
if (++pending > pending_threshold) { if (++pending > pending_threshold) {