Skip to content

Commit

Permalink
cosmetics in messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Jul 28, 2022
1 parent 811d1f1 commit 3bad7e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void __attribute__ ((weak, noreturn)) abort (void)
*/
void __attribute__ ((noreturn)) exit (int code)
{
trace_printf ("%s(%d)\n", __func__, code);
trace_printf ("\n%s(%d)\n", __func__, code);

// Call the cleanup functions enrolled with atexit().
__call_exitprocs (code, NULL);
Expand Down
14 changes: 4 additions & 10 deletions src/startup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ void __attribute__ ((noreturn, weak)) _start (void)
// Hook to continue the initializations. Usually compute and store the
// clock frequency in a global variable, cleared above.
micro_os_plus_startup_initialize_hardware ();
trace::puts ("Hardware initialized.");
trace::puts ("Hardware initialized");

#endif // MICRO_OS_PLUS_INCLUDE_STARTUP_INITIALIZE_HARDWARE

Expand Down Expand Up @@ -454,11 +454,7 @@ void __attribute__ ((noreturn, weak)) _start (void)
micro_os_plus_startup_initialize_args (&argc, &argv);

trace::dump_args (argc, argv);

trace::puts (
"\nµOS++ IIIe version " MICRO_OS_PLUS_STRING_MICRO_OS_PLUS_VERSION);
trace::puts ("Copyright (c) 2007-" MICRO_OS_PLUS_STRING_MICRO_OS_PLUS_YEAR
" Liviu Ionescu");
trace::puts();

#pragma GCC diagnostic push

Expand Down Expand Up @@ -539,7 +535,7 @@ void __attribute__ ((weak))
micro_os_plus_startup_initialize_free_store (void* heap_address,
std::size_t heap_size_bytes)
{
trace::printf ("Heap: @0x%08X (%dK)\n", heap_address,
trace::printf ("Heap: @0x%08X (%d KiB)\n", heap_address,
heap_size_bytes / 1024);
}

Expand All @@ -548,11 +544,9 @@ micro_os_plus_startup_initialize_free_store (void* heap_address,
// other statistics.
void __attribute__ ((weak)) micro_os_plus_terminate_goodbye (void)
{
trace::puts("\nHasta la Vista!");
trace::puts("\nHasta la vista!");
}

#endif

#pragma GCC diagnostic pop

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 3bad7e6

Please sign in to comment.