diff options
author | Alex Elder <aelder@sgi.com> | 2010-04-13 01:22:08 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-05-19 10:58:11 -0400 |
commit | a0e856b0b4d182c4c52b568bd04bd96a172247a7 (patch) | |
tree | ae8c3d988dc84d42dc69a045bc16566a25377c82 /fs/xfs/xfs_error.c | |
parent | 74457cf4a3e0f0634679aa6c22d967e9e8b26479 (diff) |
xfs: add const qualifiers to xfs error function args
Change the tag and file name arguments to xfs_error_report() and
xfs_corruption_error() to use a const qualifier.
Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r-- | fs/xfs/xfs_error.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c index 92d5cd5bf4f2..ef96175c0744 100644 --- a/fs/xfs/xfs_error.c +++ b/fs/xfs/xfs_error.c | |||
@@ -186,18 +186,18 @@ xfs_cmn_err(int panic_tag, int level, xfs_mount_t *mp, char *fmt, ...) | |||
186 | 186 | ||
187 | void | 187 | void |
188 | xfs_error_report( | 188 | xfs_error_report( |
189 | char *tag, | 189 | const char *tag, |
190 | int level, | 190 | int level, |
191 | xfs_mount_t *mp, | 191 | struct xfs_mount *mp, |
192 | char *fname, | 192 | const char *filename, |
193 | int linenum, | 193 | int linenum, |
194 | inst_t *ra) | 194 | inst_t *ra) |
195 | { | 195 | { |
196 | if (level <= xfs_error_level) { | 196 | if (level <= xfs_error_level) { |
197 | xfs_cmn_err(XFS_PTAG_ERROR_REPORT, | 197 | xfs_cmn_err(XFS_PTAG_ERROR_REPORT, |
198 | CE_ALERT, mp, | 198 | CE_ALERT, mp, |
199 | "XFS internal error %s at line %d of file %s. Caller 0x%p\n", | 199 | "XFS internal error %s at line %d of file %s. Caller 0x%p\n", |
200 | tag, linenum, fname, ra); | 200 | tag, linenum, filename, ra); |
201 | 201 | ||
202 | xfs_stack_trace(); | 202 | xfs_stack_trace(); |
203 | } | 203 | } |
@@ -205,15 +205,15 @@ xfs_error_report( | |||
205 | 205 | ||
206 | void | 206 | void |
207 | xfs_corruption_error( | 207 | xfs_corruption_error( |
208 | char *tag, | 208 | const char *tag, |
209 | int level, | 209 | int level, |
210 | xfs_mount_t *mp, | 210 | struct xfs_mount *mp, |
211 | void *p, | 211 | void *p, |
212 | char *fname, | 212 | const char *filename, |
213 | int linenum, | 213 | int linenum, |
214 | inst_t *ra) | 214 | inst_t *ra) |
215 | { | 215 | { |
216 | if (level <= xfs_error_level) | 216 | if (level <= xfs_error_level) |
217 | xfs_hex_dump(p, 16); | 217 | xfs_hex_dump(p, 16); |
218 | xfs_error_report(tag, level, mp, fname, linenum, ra); | 218 | xfs_error_report(tag, level, mp, filename, linenum, ra); |
219 | } | 219 | } |