Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for logging #3

Open
yifanlu opened this issue Mar 28, 2016 · 0 comments
Open

Add support for logging #3

yifanlu opened this issue Mar 28, 2016 · 0 comments

Comments

@yifanlu
Copy link
Owner

yifanlu commented Mar 28, 2016

Here's an idea: enable logging support by checking if "sdmc:/loader.txt" exists. If it does not, do not enable logging (save resources). If it does exist, open that file with append permissions. Set the console to write to the log and you can use printf within the code. Would be very useful for debugging. (Just create an empty file named loader.txt and when you're done, delete it and logging is disabled).

I didn't do this because this would make loader way too big. However, if you're willing to rebuild FIRM, size doesn't matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant