As this is already done for some single-purpose situations, a more general approach seems needed. Probably inspired by `printk` from Linux kernel and wrapped in DP*_LOG_ macros.