summaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_message.c
diff options
context:
space:
mode:
authorAlex Elder <aelder@sgi.com>2011-03-11 12:39:51 +0000
committerAlex Elder <aelder@sgi.com>2011-03-11 16:34:51 -0600
commit0c9ba97318fc9a905bcc1419b6966de061203a70 (patch)
treef802ac837ce6b444a472c94be400e0f1373f2572 /fs/xfs/linux-2.6/xfs_message.c
parentecb6928fcf969b302929f109e175981df1dba697 (diff)
xfs: don't name variables "panic"
The new xfs_alert_tag() used a variable named "panic", and that is to be avoided. Rename it. Signed-off-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_message.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_message.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/linux-2.6/xfs_message.c b/fs/xfs/linux-2.6/xfs_message.c
index 8fe8cf69d80..508e06fd7d1 100644
--- a/fs/xfs/linux-2.6/xfs_message.c
+++ b/fs/xfs/linux-2.6/xfs_message.c
@@ -96,13 +96,13 @@ xfs_alert_tag(
{
struct va_format vaf;
va_list args;
- int panic = 0;
- int r;
+ int do_panic = 0;
+ int r;
if (xfs_panic_mask && (xfs_panic_mask & panic_tag)) {
xfs_printk(KERN_ALERT, mp,
"XFS: Transforming an alert into a BUG.");
- panic = 1;
+ do_panic = 1;
}
va_start(args, fmt);
@@ -113,7 +113,7 @@ xfs_alert_tag(
r = __xfs_printk(KERN_ALERT, mp, &vaf);
va_end(args);
- BUG_ON(panic);
+ BUG_ON(do_panic);
return r;
}