summaryrefslogtreecommitdiffstats
path: root/fs/udf/udfdecl.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-08-26 05:36:19 -0400
committerJan Kara <jack@suse.cz>2019-08-26 05:36:19 -0400
commit8cbd9af9d208b1f015cf8a4645602f0a007270a8 (patch)
tree14545bcef168bccd9dc0282818961f0a98cd91a0 /fs/udf/udfdecl.h
parentab9a3a737284b3d9e1d2ba43a0ef31b3ef2e2417 (diff)
udf: Use dynamic debug infrastructure
Instead of relying on UDFFS_DEBUG define for debug printing, just use standard pr_debug() prints and rely on CONFIG_DYNAMIC_DEBUG infrastructure for enabling or disabling prints. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udfdecl.h')
-rw-r--r--fs/udf/udfdecl.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
index d89ef71887fc..65e243ebeb9c 100644
--- a/fs/udf/udfdecl.h
+++ b/fs/udf/udfdecl.h
@@ -31,16 +31,8 @@ extern __printf(3, 4) void _udf_warn(struct super_block *sb,
31#define udf_info(fmt, ...) \ 31#define udf_info(fmt, ...) \
32 pr_info("INFO " fmt, ##__VA_ARGS__) 32 pr_info("INFO " fmt, ##__VA_ARGS__)
33 33
34#undef UDFFS_DEBUG
35
36#ifdef UDFFS_DEBUG
37#define udf_debug(fmt, ...) \
38 printk(KERN_DEBUG pr_fmt("%s:%d:%s: " fmt), \
39 __FILE__, __LINE__, __func__, ##__VA_ARGS__)
40#else
41#define udf_debug(fmt, ...) \ 34#define udf_debug(fmt, ...) \
42 no_printk(fmt, ##__VA_ARGS__) 35 pr_debug("%s:%d:%s: " fmt, __FILE__, __LINE__, __func__, ##__VA_ARGS__)
43#endif
44 36
45#define udf_fixed_to_variable(x) ( ( ( (x) >> 5 ) * 39 ) + ( (x) & 0x0000001F ) ) 37#define udf_fixed_to_variable(x) ( ( ( (x) >> 5 ) * 39 ) + ( (x) & 0x0000001F ) )
46#define udf_variable_to_fixed(x) ( ( ( (x) / 39 ) << 5 ) + ( (x) % 39 ) ) 38#define udf_variable_to_fixed(x) ( ( ( (x) / 39 ) << 5 ) + ( (x) % 39 ) )