aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/udfdecl.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-10-10 04:08:04 -0400
committerJan Kara <jack@suse.cz>2011-10-10 13:29:01 -0400
commita40ecd7b3ccf520ff02da93e8d1ba6cd55c2e359 (patch)
treedd5e340a20c85f7962a4e7861854e066586d1d02 /fs/udf/udfdecl.h
parent8076c363da15e7c35a4094974d1b4bcc196b5fa9 (diff)
udf: Rename udf_warning to udf_warn
Rename udf_warning to udf_warn for consistency with normal logging uses of pr_warn. Rename function udf_warning to _udf_warn. Remove __func__ from uses and move __func__ to a new udf_warn macro that calls _udf_warn. Add \n's to uses of udf_warn, remove \n from _udf_warn. Coalesce formats. Reviewed-by: NamJae Jeon <linkinjeon@gmail.com> Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udfdecl.h')
-rw-r--r--fs/udf/udfdecl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
index 7bc3ba1415fc..85e15edc080f 100644
--- a/fs/udf/udfdecl.h
+++ b/fs/udf/udfdecl.h
@@ -30,7 +30,10 @@ do { \
30#endif 30#endif
31 31
32__attribute__((format(printf, 3, 4))) 32__attribute__((format(printf, 3, 4)))
33extern void udf_warning(struct super_block *, const char *, const char *, ...); 33extern void _udf_warn(struct super_block *sb, const char *function,
34 const char *fmt, ...);
35#define udf_warn(sb, fmt, ...) \
36 _udf_warn(sb, __func__, fmt, ##__VA_ARGS__)
34 37
35__attribute__((format(printf, 3, 4))) 38__attribute__((format(printf, 3, 4)))
36extern void _udf_err(struct super_block *sb, const char *function, 39extern void _udf_err(struct super_block *sb, const char *function,