tpiekarski/pretty-printk

Prettify printing multiple variables

tpiekarski opened this issue · 1 comments

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

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

Additional context
none

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