void __reiserfs_log(int level, const char * fmt, ...) { do_reiserfs_warning(fmt); log(level, "ReiserFS/%s: %s\n", __FUNCTION__, error_buf); }
/* No newline.. reiserfs_info calls can be followed by printk's */ void reiserfs_info(struct super_block *sb, const char *fmt, ...) { do_reiserfs_warning(fmt); if (sb) printk(KERN_NOTICE "REISERFS (device %s): %s", sb->s_id, error_buf); else printk(KERN_NOTICE "REISERFS %s:", error_buf); }
void reiserfs_debug (struct super_block *s, int level, const char * fmt, ...) { #ifdef CONFIG_REISERFS_CHECK do_reiserfs_warning(fmt); printk (KERN_DEBUG "%s", error_buf); #else ; #endif }
/* No newline.. reiserfs_info calls can be followed by printk's */ void reiserfs_info (struct super_block *sb, const char * fmt, ...) { do_reiserfs_warning(fmt); if (sb) printk (KERN_NOTICE "ReiserFS: %s: %s", reiserfs_bdevname (sb), error_buf); else printk (KERN_NOTICE "ReiserFS: %s", error_buf); }
void reiserfs_warning (struct super_block *sb, const char * fmt, ...) { do_reiserfs_warning(fmt); if (sb) printk (KERN_WARNING "ReiserFS: %s: warning: %s\n", reiserfs_bdevname (sb), error_buf); else printk (KERN_WARNING "ReiserFS: warning: %s\n", error_buf); }
void reiserfs_panic(struct super_block *sb, const char *fmt, ...) { do_reiserfs_warning(fmt); dump_stack(); panic(KERN_EMERG "REISERFS: panic (device %s): %s\n", reiserfs_bdevname(sb), error_buf); }
void reiserfs_panic (struct super_block * sb, const char * fmt, ...) { show_reiserfs_locks() ; do_reiserfs_warning(fmt); printk ( KERN_EMERG "%s", error_buf); BUG (); /* this is not actually called, but makes reiserfs_panic() "noreturn" */ panic ("REISERFS: panic (device %s): %s\n", sb ? sb->s_id : "sb == 0", error_buf); }
void reiserfs_panic (struct super_block * sb, const char * fmt, ...) { do_reiserfs_warning(fmt); printk (KERN_EMERG "REISERFS: panic (device %s): %s\n", reiserfs_bdevname (sb), error_buf); BUG (); /* this is not actually called, but makes reiserfs_panic() "noreturn" */ panic ("REISERFS: panic (device %s): %s\n", reiserfs_bdevname (sb), error_buf); }
void reiserfs_debug (struct super_block *s, int level, const char * fmt, ...) { #ifdef CONFIG_REISERFS_CHECK do_reiserfs_warning(fmt); if (s) printk (KERN_DEBUG "ReiserFS: %s: %s\n", reiserfs_bdevname (s), error_buf); else printk (KERN_DEBUG "ReiserFS: %s\n", error_buf); #endif }
void reiserfs_debug(struct super_block *s, int level, const char *fmt, ...) { #ifdef CONFIG_REISERFS_CHECK do_reiserfs_warning(fmt); if (s) printk(KERN_DEBUG "REISERFS debug (device %s): %s\n", s->s_id, error_buf); else printk(KERN_DEBUG "REISERFS debug: %s\n", error_buf); #endif }
void __reiserfs_warning(struct super_block *sb, const char *id, const char *function, const char *fmt, ...) { do_reiserfs_warning(fmt); if (sb) printk(KERN_WARNING "REISERFS warning (device %s): %s%s%s: " "%s\n", sb->s_id, id ? id : "", id ? " " : "", function, error_buf); else printk(KERN_WARNING "REISERFS warning: %s%s%s: %s\n", id ? id : "", id ? " " : "", function, error_buf); }
void __reiserfs_panic(struct super_block *sb, const char *id, const char *function, const char *fmt, ...) { do_reiserfs_warning(fmt); #ifdef CONFIG_REISERFS_CHECK dump_stack(); #endif if (sb) panic(KERN_WARNING "REISERFS panic (device %s): %s%s%s: %s\n", sb->s_id, id ? id : "", id ? " " : "", function, error_buf); else panic(KERN_WARNING "REISERFS panic: %s%s%s: %s\n", id ? id : "", id ? " " : "", function, error_buf); }
void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...) { do_reiserfs_warning(fmt); if (reiserfs_error_panic(sb)) { panic(KERN_CRIT "REISERFS: panic (device %s): %s\n", reiserfs_bdevname(sb), error_buf); } if (sb->s_flags & MS_RDONLY) return; printk(KERN_CRIT "REISERFS: abort (device %s): %s\n", reiserfs_bdevname(sb), error_buf); sb->s_flags |= MS_RDONLY; reiserfs_journal_abort(sb, errno); }
void reiserfs_abort(struct super_block *sb, int errno, const char *fmt, ...) { do_reiserfs_warning(fmt); if (reiserfs_error_panic(sb)) { panic(KERN_CRIT "REISERFS panic (device %s): %s\n", sb->s_id, error_buf); } if (reiserfs_is_journal_aborted(SB_JOURNAL(sb))) return; printk(KERN_CRIT "REISERFS abort (device %s): %s\n", sb->s_id, error_buf); sb->s_flags |= MS_RDONLY; reiserfs_abort_journal(sb, errno); }
void __reiserfs_error(struct super_block *sb, const char *id, const char *function, const char *fmt, ...) { do_reiserfs_warning(fmt); BUG_ON(sb == NULL); if (reiserfs_error_panic(sb)) __reiserfs_panic(sb, id, function, error_buf); if (id && id[0]) printk(KERN_CRIT "REISERFS error (device %s): %s %s: %s\n", sb->s_id, id, function, error_buf); else printk(KERN_CRIT "REISERFS error (device %s): %s: %s\n", sb->s_id, function, error_buf); if (sb->s_flags & MS_RDONLY) return; reiserfs_info(sb, "Remounting filesystem read-only\n"); sb->s_flags |= MS_RDONLY; reiserfs_abort_journal(sb, -EIO); }
void reiserfs_warning (const char * fmt, ...) { do_reiserfs_warning(fmt); /* console_print (error_buf); */ printk (KERN_WARNING "%s", error_buf); }
/* No newline.. reiserfs_printk calls can be followed by printk's */ static void reiserfs_printk(const char *fmt, ...) { do_reiserfs_warning(fmt); printk(error_buf); }