mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
6c6bb35c89
This patch let fsck to check and fix quota file contents. Signed-off-by: Hyojun Kim <hyojun@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
31 lines
658 B
C
31 lines
658 B
C
/**
|
|
*
|
|
* 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__ */
|