Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 229077
b: refs/heads/master
c: 99fbb1e
h: refs/heads/master
i:
  229075: 5303d75
v: v3
  • Loading branch information
Joe Perches authored and Jan Kara committed Jan 6, 2011
1 parent 3c18a40 commit b8468ce
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23a2ad6d0e58d0f2fb1647c2d6fef935bcaf9299
refs/heads/master: 99fbb1e2af5da27d3ee75c2e421712fe9d083fb6
56 changes: 37 additions & 19 deletions trunk/fs/ext3/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,16 @@ void ext3_journal_abort_handle(const char *caller, const char *err_fn,
void ext3_msg(struct super_block *sb, const char *prefix,
const char *fmt, ...)
{
struct va_format vaf;
va_list args;

va_start(args, fmt);
printk("%sEXT3-fs (%s): ", prefix, sb->s_id);
vprintk(fmt, args);
printk("\n");

vaf.fmt = fmt;
vaf.va = &args;

printk("%sEXT3-fs (%s): %pV\n", prefix, sb->s_id, &vaf);

va_end(args);
}

Expand Down Expand Up @@ -195,15 +199,20 @@ static void ext3_handle_error(struct super_block *sb)
sb->s_id);
}

void ext3_error (struct super_block * sb, const char * function,
const char * fmt, ...)
void ext3_error(struct super_block *sb, const char *function,
const char *fmt, ...)
{
struct va_format vaf;
va_list args;

va_start(args, fmt);
printk(KERN_CRIT "EXT3-fs error (device %s): %s: ",sb->s_id, function);
vprintk(fmt, args);
printk("\n");

vaf.fmt = fmt;
vaf.va = &args;

printk(KERN_CRIT "EXT3-fs error (device %s): %s: %pV\n",
sb->s_id, function, &vaf);

va_end(args);

ext3_handle_error(sb);
Expand Down Expand Up @@ -274,15 +283,20 @@ void __ext3_std_error (struct super_block * sb, const char * function,
* case we take the easy way out and panic immediately.
*/

void ext3_abort (struct super_block * sb, const char * function,
const char * fmt, ...)
void ext3_abort(struct super_block *sb, const char *function,
const char *fmt, ...)
{
struct va_format vaf;
va_list args;

va_start(args, fmt);
printk(KERN_CRIT "EXT3-fs (%s): error: %s: ", sb->s_id, function);
vprintk(fmt, args);
printk("\n");

vaf.fmt = fmt;
vaf.va = &args;

printk(KERN_CRIT "EXT3-fs (%s): error: %s: %pV\n",
sb->s_id, function, &vaf);

va_end(args);

if (test_opt(sb, ERRORS_PANIC))
Expand All @@ -300,16 +314,20 @@ void ext3_abort (struct super_block * sb, const char * function,
journal_abort(EXT3_SB(sb)->s_journal, -EIO);
}

void ext3_warning (struct super_block * sb, const char * function,
const char * fmt, ...)
void ext3_warning(struct super_block *sb, const char *function,
const char *fmt, ...)
{
struct va_format vaf;
va_list args;

va_start(args, fmt);
printk(KERN_WARNING "EXT3-fs (%s): warning: %s: ",
sb->s_id, function);
vprintk(fmt, args);
printk("\n");

vaf.fmt = fmt;
vaf.va = &args;

printk(KERN_WARNING "EXT3-fs (%s): warning: %s: %pV\n",
sb->s_id, function, &vaf);

va_end(args);
}

Expand Down

0 comments on commit b8468ce

Please sign in to comment.