Skip to content

Commit f52b5e7

Browse files
committed
Update expected logs and log output for DMOD-Boot startup; ensure consistency in log messages
1 parent 09e55fb commit f52b5e7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

configs/renode/expected_logs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Each line is a pattern that must appear in the monitor-gdb output
33
# Lines starting with # are comments and empty lines are ignored
44

5-
stm32f746xg@/>
5+
DMOD-Boot started

src/main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ int main(int argc, char** argv)
280280
dmlog_ctx_t ctx = dmlog_create(logs_start, logs_size);
281281
dmlog_set_as_default(ctx);
282282

283-
dmlog_puts(ctx, "DMOD-Boot started\n");
284-
285283
void* heap_start = &__heap_start__;
286284
void* heap_end = &__heap_end__;
287285
size_t heap_size = (size_t)((uintptr_t)heap_end - (uintptr_t)heap_start);
@@ -335,6 +333,9 @@ int main(int argc, char** argv)
335333
// Load startup.dmp if embedded in ROM
336334
load_embedded_startup_dmp();
337335

336+
// Mark that the boot process is done
337+
dmlog_puts(ctx, "DMOD-Boot started\n");
338+
338339
// Start main module if loaded
339340
start_main_module(mainModule);
340341

0 commit comments

Comments
 (0)