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

kernel: debug: update #688

Merged
merged 1 commit into from Nov 20, 2017
Merged

kernel: debug: update #688

merged 1 commit into from Nov 20, 2017

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Nov 20, 2017

Pull Request Overview

This pull request changes the kernel debug macro in the following ways:

  • Remove header, file, and line number information from debug!(). This helps with overflowing debug messages where any sort of tight loop causes the kernel to crash when the debug! buffer fills up.
  • Move existing debug behavior to a new macro called debug_verbose!().
  • Simplify code by removing redundant begin_debug function.

Testing Strategy

This pull request was tested by adding some debug! prints to the hail/main.rs file and verifying that they still print.

Documentation Updated

  • Kernel: The relevant files in /docs have been updated or no updates are required.
  • Userland: The application README has been added, updated, or no updates are required.

Are we intending to keep those courses up to date? That is going to be a lot of work.

Formatting

  • make formatall has been run.

- Remove header, file, and line number information from `debug!()`. This
helps with overflowing debug messages where any sort of tight loop
causes the kernel to crash when the debug! buffer fills up.
- Move existing debug behavior to a new macro called `debug_verbose!()`.
- Simplify code by removing redundant begin_debug function.
@bradjc bradjc added the kernel label Nov 20, 2017
@alevy alevy merged commit e5eb8d2 into master Nov 20, 2017
@alevy alevy deleted the simple-debug branch November 20, 2017 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants