Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250068
b: refs/heads/master
c: e69522a
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Alex Elder committed May 19, 2011
1 parent 79c8c5c commit 57c0f19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 24 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: e4d3c4a43b595d5124ae824d300626e6489ae857
refs/heads/master: e69522a8cc51fbefbfe9d178ad177f7b6ca00ebd
20 changes: 1 addition & 19 deletions trunk/fs/xfs/linux-2.6/xfs_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,6 @@ __xfs_printk(
printk("%sXFS: %pV\n", level, vaf);
}

void xfs_printk(
const char *level,
const struct xfs_mount *mp,
const char *fmt, ...)
{
struct va_format vaf;
va_list args;

va_start(args, fmt);

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

__xfs_printk(level, mp, &vaf);
va_end(args);
}

#define define_xfs_printk_level(func, kern_level) \
void func(const struct xfs_mount *mp, const char *fmt, ...) \
{ \
Expand Down Expand Up @@ -95,8 +78,7 @@ xfs_alert_tag(
int do_panic = 0;

if (xfs_panic_mask && (xfs_panic_mask & panic_tag)) {
xfs_printk(KERN_ALERT, mp,
"XFS: Transforming an alert into a BUG.");
xfs_alert(mp, "Transforming an alert into a BUG.");
do_panic = 1;
}

Expand Down
7 changes: 3 additions & 4 deletions trunk/fs/xfs/linux-2.6/xfs_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

struct xfs_mount;

extern void xfs_printk(const char *level, const struct xfs_mount *mp,
const char *fmt, ...)
__attribute__ ((format (printf, 3, 4)));
extern void xfs_emerg(const struct xfs_mount *mp, const char *fmt, ...)
__attribute__ ((format (printf, 2, 3)));
extern void xfs_alert(const struct xfs_mount *mp, const char *fmt, ...)
Expand All @@ -28,7 +25,9 @@ extern void xfs_info(const struct xfs_mount *mp, const char *fmt, ...)
extern void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
__attribute__ ((format (printf, 2, 3)));
#else
static inline void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
static inline void
__attribute__ ((format (printf, 2, 3)))
xfs_debug(const struct xfs_mount *mp, const char *fmt, ...)
{
}
#endif
Expand Down

0 comments on commit 57c0f19

Please sign in to comment.