-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e769821
commit 79f27e2
Showing
28 changed files
with
16,387 additions
and
1,711 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,30 @@ | ||
/** | ||
* | ||
* Various things common for all utilities | ||
* | ||
*/ | ||
|
||
#ifndef __QUOTA_COMMON_H__ | ||
#define __QUOTA_COMMON_H__ | ||
|
||
#undef DEBUG_QUOTA | ||
|
||
#ifndef __attribute__ | ||
# if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__ | ||
# define __attribute__(x) | ||
# endif | ||
#endif | ||
|
||
#define log_err(format, arg ...) \ | ||
fprintf(stderr, "[ERROR] %s:%d:%s:: " format "\n", \ | ||
__FILE__, __LINE__, __func__, ## arg) | ||
|
||
#ifdef DEBUG_QUOTA | ||
# define log_debug(format, arg ...) \ | ||
fprintf(stderr, "[DEBUG] %s:%d:%s:: " format "\n", \ | ||
__FILE__, __LINE__, __func__, ## arg) | ||
#else | ||
# define log_debug(...) | ||
#endif | ||
|
||
#endif /* __QUOTA_COMMON_H__ */ |
Oops, something went wrong.