diff options
author | Alex Elder <aelder@sgi.com> | 2011-03-11 07:39:51 -0500 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-03-11 17:34:51 -0500 |
commit | 0c9ba97318fc9a905bcc1419b6966de061203a70 (patch) | |
tree | f802ac837ce6b444a472c94be400e0f1373f2572 /fs/xfs | |
parent | ecb6928fcf969b302929f109e175981df1dba697 (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')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_message.c | 8 |
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 8fe8cf69d809..508e06fd7d1e 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( | |||
96 | { | 96 | { |
97 | struct va_format vaf; | 97 | struct va_format vaf; |
98 | va_list args; | 98 | va_list args; |
99 | int panic = 0; | 99 | int do_panic = 0; |
100 | int r; | 100 | int r; |
101 | 101 | ||
102 | if (xfs_panic_mask && (xfs_panic_mask & panic_tag)) { | 102 | if (xfs_panic_mask && (xfs_panic_mask & panic_tag)) { |
103 | xfs_printk(KERN_ALERT, mp, | 103 | xfs_printk(KERN_ALERT, mp, |
104 | "XFS: Transforming an alert into a BUG."); | 104 | "XFS: Transforming an alert into a BUG."); |
105 | panic = 1; | 105 | do_panic = 1; |
106 | } | 106 | } |
107 | 107 | ||
108 | va_start(args, fmt); | 108 | va_start(args, fmt); |
@@ -113,7 +113,7 @@ xfs_alert_tag( | |||
113 | r = __xfs_printk(KERN_ALERT, mp, &vaf); | 113 | r = __xfs_printk(KERN_ALERT, mp, &vaf); |
114 | va_end(args); | 114 | va_end(args); |
115 | 115 | ||
116 | BUG_ON(panic); | 116 | BUG_ON(do_panic); |
117 | 117 | ||
118 | return r; | 118 | return r; |
119 | } | 119 | } |