Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
ac88d796
Commit
ac88d796
authored
9 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
core: remove DEBUGF macro
parent
fac95806
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/include/debug.h
+4
-24
4 additions, 24 deletions
core/include/debug.h
with
4 additions
and
24 deletions
core/include/debug.h
+
4
−
24
View file @
ac88d796
...
@@ -14,15 +14,10 @@
...
@@ -14,15 +14,10 @@
* @brief Debug-header
* @brief Debug-header
*
*
* @details If *ENABLE_DEBUG* is defined inside an implementation file, all
* @details If *ENABLE_DEBUG* is defined inside an implementation file, all
* calls to ::DEBUG and ::DEBUGF* will work the same as *printf*
* calls to ::DEBUG will work the same as *printf* and output the
* and output the given information to stdout. If *ENABLE_DEBUG*
* given information to stdout. If *ENABLE_DEBUG* is not defined,
* is not defined, all calls to ::DEBUG and ::DEBUGF will be
* all calls to ::DEBUG will be ignored.
* ignored.
*
*
* In addition to just printing the given information ::DEBUGF
* will further print extended debug information about the current
* thread and function.
*
* @author Kaspar Schleiser <kaspar@schleiser.de>
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
*/
...
@@ -40,8 +35,7 @@ extern "C" {
...
@@ -40,8 +35,7 @@ extern "C" {
/**
/**
* @def ENABLE_DEBUG
* @def ENABLE_DEBUG
* @brief This macro can be defined as 0 or other on a file-based level.
* @brief This macro can be defined as 0 or other on a file-based level.
* If ENABLE_DEBUG is 0 @ref DEBUG() and @ref DEBUGF() will generate
* @ref DEBUG() will generate output only if ENABLE_DEBUG is non-zero.
* no output if not they will generate output.
*/
*/
/**
/**
...
@@ -100,22 +94,8 @@ extern "C" {
...
@@ -100,22 +94,8 @@ extern "C" {
* @note Another name for ::DEBUG_PRINT
* @note Another name for ::DEBUG_PRINT
*/
*/
#define DEBUG(...) DEBUG_PRINT(__VA_ARGS__)
#define DEBUG(...) DEBUG_PRINT(__VA_ARGS__)
/**
* @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)
#else
#else
#define DEBUG(...)
#define DEBUG(...)
#define DEBUGF(...)
#endif
#endif
/** @} */
/** @} */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment