I don't really like that these to lines are split.
It'd propose something like that (untested):
```c
#define DEBUGF(FMT, ...) \
    DEBUG_PRINT("DEBUG(%s): %s:%d in %s: " FMT, \
                active_thread->name, __FILE__, __LINE__, __func__, __VA_ARGS__)
```