|
@@ -51,14 +51,13 @@ __printf(1, 2) void cifs_vfs_err(const char *fmt, ...);
|
|
/* information message: e.g., configuration, major event */
|
|
/* information message: e.g., configuration, major event */
|
|
#define cifs_dbg(type, fmt, ...) \
|
|
#define cifs_dbg(type, fmt, ...) \
|
|
do { \
|
|
do { \
|
|
- if (type == FYI) { \
|
|
|
|
- if (cifsFYI & CIFS_INFO) { \
|
|
|
|
- pr_debug("%s: " fmt, __FILE__, ##__VA_ARGS__); \
|
|
|
|
- } \
|
|
|
|
|
|
+ if (type == FYI && cifsFYI & CIFS_INFO) { \
|
|
|
|
+ pr_debug_ratelimited("%s: " \
|
|
|
|
+ fmt, __FILE__, ##__VA_ARGS__); \
|
|
} else if (type == VFS) { \
|
|
} else if (type == VFS) { \
|
|
cifs_vfs_err(fmt, ##__VA_ARGS__); \
|
|
cifs_vfs_err(fmt, ##__VA_ARGS__); \
|
|
} else if (type == NOISY && type != 0) { \
|
|
} else if (type == NOISY && type != 0) { \
|
|
- pr_debug(fmt, ##__VA_ARGS__); \
|
|
|
|
|
|
+ pr_debug_ratelimited(fmt, ##__VA_ARGS__); \
|
|
} \
|
|
} \
|
|
} while (0)
|
|
} while (0)
|
|
|
|
|