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
19d0e61a
Commit
19d0e61a
authored
Feb 10, 2004
by
Eric Sandeen
Committed by
Nathan Scott
Feb 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Make more xfs errors trappable with panic_mask
SGI Modid: xfs-linux:xfs-kern:
164051a6
parent
ec6df424
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
fs/xfs/xfs_error.c
fs/xfs/xfs_error.c
+14
-16
No files found.
fs/xfs/xfs_error.c
View file @
19d0e61a
...
...
@@ -218,6 +218,7 @@ xfs_errortag_clearall(xfs_mount_t *mp)
static
void
xfs_fs_vcmn_err
(
int
level
,
xfs_mount_t
*
mp
,
char
*
fmt
,
va_list
ap
)
{
if
(
mp
!=
NULL
)
{
char
*
newfmt
;
int
len
=
16
+
mp
->
m_fsname_len
+
strlen
(
fmt
);
...
...
@@ -225,6 +226,9 @@ xfs_fs_vcmn_err(int level, xfs_mount_t *mp, char *fmt, va_list ap)
sprintf
(
newfmt
,
"Filesystem
\"
%s
\"
: %s"
,
mp
->
m_fsname
,
fmt
);
icmn_err
(
level
,
newfmt
,
ap
);
kmem_free
(
newfmt
,
len
);
}
else
{
icmn_err
(
level
,
fmt
,
ap
);
}
}
void
...
...
@@ -267,16 +271,10 @@ xfs_error_report(
inst_t
*
ra
)
{
if
(
level
<=
xfs_error_level
)
{
if
(
mp
!=
NULL
)
{
xfs_cmn_err
(
XFS_PTAG_ERROR_REPORT
,
CE_ALERT
,
mp
,
"XFS internal error %s at line %d of file %s. Caller 0x%p
\n
"
,
tag
,
linenum
,
fname
,
ra
);
}
else
{
cmn_err
(
CE_ALERT
,
"XFS internal error %s at line %d of file %s. Caller 0x%p
\n
"
,
tag
,
linenum
,
fname
,
ra
);
}
xfs_stack_trace
();
}
...
...
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