-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
...which creates and prints debug messages starting with [aodvv2]
- Loading branch information
1 parent
3df09f2
commit ae33b42
Showing
6 changed files
with
120 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (C) 2014 Freie Universität Berlin | ||
* | ||
* This file is subject to the terms and conditions of the GNU Lesser | ||
* General Public License v2.1. See the file LICENSE in the top level | ||
* directory for more details. | ||
*/ | ||
|
||
/** | ||
* @addtogroup core_util | ||
* @{ | ||
* | ||
* @ingroup aodvv2 | ||
* @brief Debug-header for aodvv2 debug messages | ||
* | ||
* | ||
* @author Lotte Steenbrink <[email protected]> | ||
*/ | ||
|
||
#ifndef AODV_DEBUG_H_ | ||
#define AODV_DEBUG_H_ | ||
|
||
#include <stdio.h> | ||
#include "sched.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief Print aodvv2 specific debug information to std-out with [aodvv2] prefix | ||
* | ||
*/ | ||
#if ENABLE_AODV_DEBUG | ||
#include "tcb.h" | ||
#define AODV_DEBUG(...) \ | ||
do { \ | ||
printf("[aodvv2] "); \ | ||
printf(__VA_ARGS__); \ | ||
} while (0) | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* AODVV2_DEBUG_H_*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.