mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
core: replace RIOT_FILE_RELATIVE with __FILE__
This commit is contained in:
parent
e0688991dd
commit
37116d359e
@ -44,10 +44,6 @@ extern "C" {
|
||||
#define DEBUG_ASSERT_VERBOSE
|
||||
#endif
|
||||
|
||||
#ifndef RIOT_FILE_RELATIVE
|
||||
#define RIOT_FILE_RELATIVE (__FILE__)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def __NORETURN
|
||||
* @brief hidden (__) NORETURN definition
|
||||
@ -110,8 +106,7 @@ __NORETURN void _assert_failure(const char *file, unsigned line);
|
||||
*
|
||||
* @see http://pubs.opengroup.org/onlinepubs/9699919799/functions/assert.html
|
||||
*/
|
||||
#define assert(cond) ((cond) ? (void)0 : _assert_failure(RIOT_FILE_RELATIVE, \
|
||||
__LINE__))
|
||||
#define assert(cond) ((cond) ? (void)0 : _assert_failure(__FILE__, __LINE__))
|
||||
#else /* DEBUG_ASSERT_VERBOSE */
|
||||
__NORETURN void _assert_panic(void);
|
||||
#define assert(cond) ((cond) ? (void)0 : _assert_panic())
|
||||
|
@ -105,18 +105,18 @@ static int _msg_send(msg_t *m, kernel_pid_t target_pid, bool block,
|
||||
thread_t *me = thread_get_active();
|
||||
|
||||
DEBUG("msg_send() %s:%i: Sending from %" PRIkernel_pid " to %" PRIkernel_pid
|
||||
". block=%i src->state=%i target->state=%i\n", RIOT_FILE_RELATIVE,
|
||||
". block=%i src->state=%i target->state=%i\n", __FILE__,
|
||||
__LINE__, thread_getpid(), target_pid,
|
||||
block, (int)me->status, (int)target->status);
|
||||
|
||||
if (target->status != STATUS_RECEIVE_BLOCKED) {
|
||||
DEBUG(
|
||||
"msg_send() %s:%i: Target %" PRIkernel_pid " is not RECEIVE_BLOCKED.\n",
|
||||
RIOT_FILE_RELATIVE, __LINE__, target_pid);
|
||||
__FILE__, __LINE__, target_pid);
|
||||
|
||||
if (queue_msg(target, m)) {
|
||||
DEBUG("msg_send() %s:%i: Target %" PRIkernel_pid
|
||||
" has a msg_queue. Queueing message.\n", RIOT_FILE_RELATIVE,
|
||||
" has a msg_queue. Queueing message.\n", __FILE__,
|
||||
__LINE__, target_pid);
|
||||
irq_restore(state);
|
||||
if (me->status == STATUS_REPLY_BLOCKED
|
||||
|
Loading…
Reference in New Issue
Block a user