Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
96614b42
Commit
96614b42
authored
Mar 17, 2003
by
Glen Overby
Committed by
Stephen Lord
Mar 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Add stack trace print to xfs_error_report, warning cleanup
SGI Modid: 2.5.x-xfs:slinx:136543a
parent
e469e765
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
fs/xfs/xfs_error.c
fs/xfs/xfs_error.c
+13
-2
fs/xfs/xfs_error.h
fs/xfs/xfs_error.h
+2
-0
No files found.
fs/xfs/xfs_error.c
View file @
96614b42
...
...
@@ -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__ */
}
}
...
...
fs/xfs/xfs_error.h
View file @
96614b42
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment