forked from gwAdvNet2015/adv-net-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gwAdvNet2015#70 from nks5295/server-verbose
Added verbose kvprintf functions. Still working on server/client runtime functionality.
- Loading branch information
Showing
4 changed files
with
47 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __COMMON_H__ | ||
#define __COMMON_H__ | ||
|
||
extern volatile int verbose_print; | ||
|
||
#define eprintf(format, ...) do { \ | ||
if (verbose_print) \ | ||
fprintf(stderr, format, ##__VA_ARGS__); \ | ||
} while(0) | ||
|
||
#define kvprintf(format, ...) do { \ | ||
if (verbose_print) \ | ||
printf(format, ##__VA_ARGS__); \ | ||
} while(0) | ||
|
||
#endif /* __COMMON_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
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