diff options
author | Jeff Mahoney <jeffm@suse.com> | 2009-03-30 14:02:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-30 15:16:35 -0400 |
commit | a5437152eec2c9171f6ab06e63135c5333f0a929 (patch) | |
tree | 11e7f4c09e48fc674703041834c9ae05d8dfc969 /fs/reiserfs | |
parent | eba00305591714f1d85ccad1afbf58259c2197b4 (diff) |
reiserfs: use more consistent printk formatting
The output format between a warning/error/panic/info/etc changes with
which one is used.
The following patch makes the messages more internally consistent, but also
more consistent with other Linux filesystems.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/reiserfs')
-rw-r--r-- | fs/reiserfs/prints.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/fs/reiserfs/prints.c b/fs/reiserfs/prints.c index 740bb8c0c1ae..535a3c7fc68e 100644 --- a/fs/reiserfs/prints.c +++ b/fs/reiserfs/prints.c | |||
@@ -268,10 +268,10 @@ void reiserfs_warning(struct super_block *sb, const char *fmt, ...) | |||
268 | { | 268 | { |
269 | do_reiserfs_warning(fmt); | 269 | do_reiserfs_warning(fmt); |
270 | if (sb) | 270 | if (sb) |
271 | printk(KERN_WARNING "ReiserFS: %s: warning: %s\n", | 271 | printk(KERN_WARNING "REISERFS warning (device %s): %s\n", |
272 | reiserfs_bdevname(sb), error_buf); | 272 | sb->s_id, error_buf); |
273 | else | 273 | else |
274 | printk(KERN_WARNING "ReiserFS: warning: %s\n", error_buf); | 274 | printk(KERN_WARNING "REISERFS warning: %s\n", error_buf); |
275 | } | 275 | } |
276 | 276 | ||
277 | /* No newline.. reiserfs_info calls can be followed by printk's */ | 277 | /* No newline.. reiserfs_info calls can be followed by printk's */ |
@@ -279,10 +279,10 @@ void reiserfs_info(struct super_block *sb, const char *fmt, ...) | |||
279 | { | 279 | { |
280 | do_reiserfs_warning(fmt); | 280 | do_reiserfs_warning(fmt); |
281 | if (sb) | 281 | if (sb) |
282 | printk(KERN_NOTICE "ReiserFS: %s: %s", | 282 | printk(KERN_NOTICE "REISERFS (device %s): %s", |
283 | reiserfs_bdevname(sb), error_buf); | 283 | sb->s_id, error_buf); |
284 | else | 284 | else |
285 | printk(KERN_NOTICE "ReiserFS: %s", error_buf); | 285 | printk(KERN_NOTICE "REISERFS %s:", error_buf); |
286 | } | 286 | } |
287 | 287 | ||
288 | /* No newline.. reiserfs_printk calls can be followed by printk's */ | 288 | /* No newline.. reiserfs_printk calls can be followed by printk's */ |
@@ -297,10 +297,10 @@ void reiserfs_debug(struct super_block *s, int level, const char *fmt, ...) | |||
297 | #ifdef CONFIG_REISERFS_CHECK | 297 | #ifdef CONFIG_REISERFS_CHECK |
298 | do_reiserfs_warning(fmt); | 298 | do_reiserfs_warning(fmt); |
299 | if (s) | 299 | if (s) |
300 | printk(KERN_DEBUG "ReiserFS: %s: %s\n", | 300 | printk(KERN_DEBUG "REISERFS debug (device %s): %s\n", |
301 | reiserfs_bdevname(s), error_buf); | 301 | s->s_id, error_buf); |
302 | else | 302 | else |
303 | printk(KERN_DEBUG "ReiserFS: %s\n", error_buf); | 303 | printk(KERN_DEBUG "REISERFS debug: %s\n", error_buf); |
304 | #endif | 304 | #endif |
305 | } | 305 | } |
306 | 306 | ||
@@ -368,15 +368,15 @@ void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...) | |||
368 | do_reiserfs_warning(fmt); | 368 | do_reiserfs_warning(fmt); |
369 | 369 | ||
370 | if (reiserfs_error_panic(sb)) { | 370 | if (reiserfs_error_panic(sb)) { |
371 | panic(KERN_CRIT "REISERFS: panic (device %s): %s\n", | 371 | panic(KERN_CRIT "REISERFS panic (device %s): %s\n", sb->s_id, |
372 | reiserfs_bdevname(sb), error_buf); | 372 | error_buf); |
373 | } | 373 | } |
374 | 374 | ||
375 | if (sb->s_flags & MS_RDONLY) | 375 | if (reiserfs_is_journal_aborted(SB_JOURNAL(sb))) |
376 | return; | 376 | return; |
377 | 377 | ||
378 | printk(KERN_CRIT "REISERFS: abort (device %s): %s\n", | 378 | printk(KERN_CRIT "REISERFS abort (device %s): %s\n", sb->s_id, |
379 | reiserfs_bdevname(sb), error_buf); | 379 | error_buf); |
380 | 380 | ||
381 | sb->s_flags |= MS_RDONLY; | 381 | sb->s_flags |= MS_RDONLY; |
382 | reiserfs_journal_abort(sb, errno); | 382 | reiserfs_journal_abort(sb, errno); |