aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/udfdecl.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-10-10 04:08:02 -0400
committerJan Kara <jack@suse.cz>2011-10-10 13:26:24 -0400
commit7e273e3b41e32716dc122b293b5f15635af495ff (patch)
tree5c6735944042e68af4e8681fb424c729701e4957 /fs/udf/udfdecl.h
parent40bfa16dac2adcded9e2eda58246cc3700d97de4 (diff)
udf: Promote some debugging messages to udf_error
If there is a problem with a scratched disc or loader, it's valuable to know which error occurred. Convert some debug messages to udf_error, neaten those messages too. Add the calculated tag checksum and the read checksum to error message. Make udf_error a public function and move the logging prototypes together. Original-patch-by: NamJae Jeon <linkinjeon@gmail.com> 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.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
index dbd52d4b5eed..81e66afecd42 100644
--- a/fs/udf/udfdecl.h
+++ b/fs/udf/udfdecl.h
@@ -29,6 +29,13 @@ do { \
29#define udf_debug(f, a...) /**/ 29#define udf_debug(f, a...) /**/
30#endif 30#endif
31 31
32__attribute__((format(printf, 3, 4)))
33extern void udf_warning(struct super_block *, const char *, const char *, ...);
34
35__attribute__((format(printf, 3, 4)))
36extern void udf_error(struct super_block *sb, const char *function,
37 const char *fmt, ...);
38
32#define udf_info(f, a...) \ 39#define udf_info(f, a...) \
33 printk(KERN_INFO "UDF-fs INFO " f, ##a); 40 printk(KERN_INFO "UDF-fs INFO " f, ##a);
34 41
@@ -112,8 +119,6 @@ struct extent_position {
112 119
113/* super.c */ 120/* super.c */
114 121
115__attribute__((format(printf, 3, 4)))
116extern void udf_warning(struct super_block *, const char *, const char *, ...);
117static inline void udf_updated_lvid(struct super_block *sb) 122static inline void udf_updated_lvid(struct super_block *sb)
118{ 123{
119 struct buffer_head *bh = UDF_SB(sb)->s_lvid_bh; 124 struct buffer_head *bh = UDF_SB(sb)->s_lvid_bh;