~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to fs/xfs/linux-2.6/xfs_message.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        printk("%sXFS: %pV\n", level, vaf);
42
42
}
43
43
 
44
 
void xfs_printk(
45
 
        const char              *level,
46
 
        const struct xfs_mount  *mp,
47
 
        const char              *fmt, ...)
48
 
{
49
 
        struct va_format        vaf;
50
 
        va_list                 args;
51
 
 
52
 
        va_start(args, fmt);
53
 
 
54
 
        vaf.fmt = fmt;
55
 
        vaf.va = &args;
56
 
 
57
 
        __xfs_printk(level, mp, &vaf);
58
 
        va_end(args);
59
 
}
60
 
 
61
44
#define define_xfs_printk_level(func, kern_level)               \
62
45
void func(const struct xfs_mount *mp, const char *fmt, ...)     \
63
46
{                                                               \
95
78
        int                     do_panic = 0;
96
79
 
97
80
        if (xfs_panic_mask && (xfs_panic_mask & panic_tag)) {
98
 
                xfs_printk(KERN_ALERT, mp,
99
 
                        "XFS: Transforming an alert into a BUG.");
 
81
                xfs_alert(mp, "Transforming an alert into a BUG.");
100
82
                do_panic = 1;
101
83
        }
102
84