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

Prettify printing multiple variables #6

Closed
tpiekarski opened this issue Apr 26, 2020 · 1 comment
Closed

Prettify printing multiple variables #6

tpiekarski opened this issue Apr 26, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tpiekarski
Copy link
Owner

Brief Description
Add a macro for pretty printing of multiple variables like...

| Variable | Value |
| x        | 10    |
| y        | foo   |
| z        | 0x4ff |

Additional context
none

@tpiekarski tpiekarski added the enhancement New feature or request label Apr 26, 2020
@tpiekarski tpiekarski self-assigned this Apr 26, 2020
@tpiekarski
Copy link
Owner Author

Dumping as such a table is not possible, won't get access to variable names during runtime. Some crazy sophisticated macro magic within variadic function is not worth the headache.

Dumping as a simple list like this will do the trick:

[ 2304.688549] pp_demo_module: Dumping data
[ 2304.688550]  1. a
[ 2304.688551]  2. 10
[ 2304.688551]  3. 5
[ 2304.688552]  4. b
[ 2304.688552]  5. foo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant