Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
14436bb4
Commit
14436bb4
authored
Sep 10, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diag: remove some now-unused macros
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
c35f000f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
diag-macros.h
include/ppsi/diag-macros.h
+0
-25
No files found.
include/ppsi/diag-macros.h
View file @
14436bb4
...
...
@@ -20,40 +20,15 @@
#ifdef CONFIG_PPSI_RUNTIME_VERBOSITY
#define CONST_VERBOSITY
/* nothing: use "int pp_diag_verbosity" */
#define PP_PRINTF(...) if (pp_diag_verbosity) pp_printf(__VA_ARGS__)
#else
/* no runtime verbosity */
/*
* If verbosity cannot be changed at run time, we have CONFIG_PPSI_VERBOSITY
* set at build time (or at Kconfig time when we add it)
*/
#define CONST_VERBOSITY const
/* use "const int pp_diag_verbosity */
#if CONFIG_PPSI_VERBOSITY > 0
#define PP_PRINTF(...) if (pp_diag_verbosity) pp_printf(__VA_ARGS__)
#else
#define PP_PRINTF(...)
#endif
/* CONFIG_PPSI_VERBOSITY > 0 */
#endif
/* CONFIG_PPSI_RUNTIME_VERBOSITY */
extern
CONST_VERBOSITY
int
pp_diag_verbosity
;
/*
* The following ones are expected to overcome the above uppercase macros.
* We really need to remove code from the object files, but the finer-grained
* selection (pp_verbose_dump etc) is a better long-term solution than
* CONFIG_PPSI_RUNTIME_VERBOSITY
*/
#define pp_error(...) \
if (pp_diag_verbosity) pp_printf("ERROR: " __VA_ARGS__)
#define pp_Vprintf(...) \
if (pp_diag_verbosity > 1) pp_printf(__VA_ARGS__)
/*
* The "new" diagnostics is based on flags: there are per-instance flags
* and global flags.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment