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

Debug print alignment #8

Open
vidavidorra opened this issue Dec 19, 2017 · 0 comments
Open

Debug print alignment #8

vidavidorra opened this issue Dec 19, 2017 · 0 comments

Comments

@vidavidorra
Copy link

vidavidorra commented Dec 19, 2017

I personally think the following debug print looks cleaner than the default, by aligning both the start of the line and (. The start of the line contains two spaces here, but these could be removed or made configurable using a define. This probably is a bit of personal preference as well, so I understand if you don't like this. If you do like it though, I'd be happy to make a pull request for this.

Proposed debug print

  stack     ( start: 20001788 end: 20002B88 size: 00001400 used: 00000DA0 ) thread ( id: 20001738 entry: 08007D79 name: main_thread )
  stack     ( start: 20001140 end: 20001340 size: 00000200 used: 00000040 ) thread ( id: 200010B0 entry: 08007E81 name: unknown )
  stack     ( start: 20001340 end: 20001640 size: 00000300 used: 00000098 ) thread ( id: 200010F8 entry: 0800B941 name: unknown )
  heap      ( start: 20002EF4 end: 2001FC00 size: 0001CD0C used: 0000072C )  alloc ( ok: 00000004  fail: 00000000 )
  isr_stack ( start: 2001FC00 end: 20020000 size: 00000400 used: 00000400 )

Current debug print (from README)

    stack ( start: 20004628 end: 20005628 size: 00001000 used: 000000F8 ) thread ( id: 200045D8 entry: 0001CEBD name: main_thread )
    stack ( start: 200040A0 end: 200042A0 size: 00000200 used: 00000100 ) thread ( id: 20003D58 entry: 0001D019 name: unknown )
    stack ( start: 20003DA0 end: 200040A0 size: 00000300 used: 00000068 ) thread ( id: 20003D10 entry: 0001F1BD name: unknown )
     heap ( start: 20005738 end: 2000FC00 size: 0000A4C8 used: 00000000 )  alloc ( ok: 00000000  fail: 00000000 )
isr_stack ( start: 2000FC00 end: 20010000 size: 00000400 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants