mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[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:
@@ -11,3 +11,4 @@ services:
|
||||
- testapp
|
||||
drivers:
|
||||
- drv.uart
|
||||
- drv.uefi_fb
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user