Commit 96614b42 authored by Glen Overby's avatar Glen Overby Committed by Stephen Lord

[XFS] Add stack trace print to xfs_error_report, warning cleanup

SGI Modid: 2.5.x-xfs:slinx:136543a
parent e469e765
......@@ -239,9 +239,17 @@ xfs_cmn_err(uint64_t panic_tag, int level, xfs_mount_t *mp, char *fmt, ...)
va_end(ap);
}
#ifdef __KERNEL__
void
xfs_stack_trace(void)
{
dump_stack();
}
#endif /* __KERNEL__ */
#ifndef __KERNEL__
int xfs_error_level = XFS_ERRLEVEL_HIGH;
#endif /* __KERNEL */
int xfs_error_level = XFS_ERRLEVEL_HIGH; /* systune in SIM library */
#endif /* ! __KERNEL */
void
xfs_error_report(
......@@ -263,6 +271,9 @@ xfs_error_report(
"XFS internal error %s at line %d of file %s. Caller 0x%x\n",
tag, linenum, fname, ra);
}
#ifdef __KERNEL__
xfs_stack_trace();
#endif /* __KERNEL__ */
}
}
......
......@@ -52,6 +52,8 @@ extern int xfs_error_trap(int);
#define XFS_ERROR(e) (e)
#endif
struct xfs_mount;
extern void
xfs_error_report(
char *tag,
......
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