[riot-notifications] [RIOT-OS/RIOT] WIP: pm_layered: print block/unblock (#10372)

Kaspar Schleiser notifications at github.com
Wed Nov 14 23:07:59 CET 2018

Hm. I can see that this is very useful, but it feels very macro-hacky, and also like a generically useful mechanism is put into pm_layered.

Could you live with call-site addresses (instead of names)? Maybe ```LOG_DEBUG("%s: called from %p, ...\n", __func__, __builtin_return_address(), ...);``` at the top of pm_block/unblock serves the same purpose, with less hackery. The LOG_DEBUG level is below default (e.g., silent by default). It should be possible to enable that level just for pm_layered by adding "CFLAGS += -DLOG_LEVEL=LOG_DEBUG" to ```sys/pm_layered/Makefile```.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20181114/2a232f33/attachment.html>

More information about the notifications mailing list