Skip to content

Commit

Permalink
Enable use of debug_x for host during init/exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 authored and mikee47 committed Jun 17, 2024
1 parent e7fd787 commit 58e0371
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sming/Arch/Host/Components/hostlib/startup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ int main(int argc, char* argv[])
}
}

m_setPuts(&host_nputs);

host_debug_i("\nWelcome to the Sming Host emulator\n\n");

auto i = get_first_non_option();
Expand Down Expand Up @@ -309,7 +311,7 @@ int main(int argc, char* argv[])
pause(config.exitpause);

// Avoid issues with debug statements whilst running exit handlers
m_setPuts(nullptr);
m_setPuts(&host_nputs);

return exitCode;
}

0 comments on commit 58e0371

Please sign in to comment.