[riot-notifications] [RIOT] core: only use thread name in DEBUGF w/ DEVELHELP (#3764)

Joakim Gebart notifications at github.com
Sat Sep 12 08:26:38 CEST 2015


> -/**
> - * @def DEBUGF
> - *
> - * @brief Print extended debug information about the current thread and
> - *        function to stdout
> - */
> -#define DEBUGF(...) \
> -    do { \
> -        DEBUG_PRINT("DEBUG(%s): %s:%d in %s: ", \
> -                sched_active_thread ? sched_active_thread->name : "NO THREAD", \
> -                __FILE__, __LINE__, DEBUG_FUNC); \
> -        DEBUG_PRINT(__VA_ARGS__); \
> -    } while (0)
> +
> +#if DEVELHELP
> +#   define THREAD_NAME      (sched_active_thread->name)

Is this macro used anywhere now that DEBUGF was removed?

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3764/files#r39334839
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150911/38d04108/attachment.html>


More information about the notifications mailing list