Commit 0c9ba973 authored by Alex Elder's avatar Alex Elder

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: default avatarAlex Elder <aelder@sgi.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
parent ecb6928f
...@@ -96,13 +96,13 @@ xfs_alert_tag( ...@@ -96,13 +96,13 @@ xfs_alert_tag(
{ {
struct va_format vaf; struct va_format vaf;
va_list args; va_list args;
int panic = 0; int do_panic = 0;
int r; int r;
if (xfs_panic_mask && (xfs_panic_mask & panic_tag)) { if (xfs_panic_mask && (xfs_panic_mask & panic_tag)) {
xfs_printk(KERN_ALERT, mp, xfs_printk(KERN_ALERT, mp,
"XFS: Transforming an alert into a BUG."); "XFS: Transforming an alert into a BUG.");
panic = 1; do_panic = 1;
} }
va_start(args, fmt); va_start(args, fmt);
...@@ -113,7 +113,7 @@ xfs_alert_tag( ...@@ -113,7 +113,7 @@ xfs_alert_tag(
r = __xfs_printk(KERN_ALERT, mp, &vaf); r = __xfs_printk(KERN_ALERT, mp, &vaf);
va_end(args); va_end(args);
BUG_ON(panic); BUG_ON(do_panic);
return r; return r;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment