Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
4b6e1d6d
Commit
4b6e1d6d
authored
Sep 25, 2013
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix: Print sockets IDs in hex when collect skips them
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
3ebb3682
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sk-unix.c
sk-unix.c
+2
-2
No files found.
sk-unix.c
View file @
4b6e1d6d
...
@@ -342,7 +342,7 @@ static int unix_collect_one(const struct unix_diag_msg *m,
...
@@ -342,7 +342,7 @@ static int unix_collect_one(const struct unix_diag_msg *m,
}
}
if
(
!
tb
[
UNIX_DIAG_VFS
])
{
if
(
!
tb
[
UNIX_DIAG_VFS
])
{
pr_err
(
"Bound socket w/o inode %
d
\n
"
,
pr_err
(
"Bound socket w/o inode %
#x
\n
"
,
m
->
udiag_ino
);
m
->
udiag_ino
);
goto
skip
;
goto
skip
;
}
}
...
@@ -350,7 +350,7 @@ static int unix_collect_one(const struct unix_diag_msg *m,
...
@@ -350,7 +350,7 @@ static int unix_collect_one(const struct unix_diag_msg *m,
uv
=
RTA_DATA
(
tb
[
UNIX_DIAG_VFS
]);
uv
=
RTA_DATA
(
tb
[
UNIX_DIAG_VFS
]);
snprintf
(
rpath
,
sizeof
(
rpath
),
".%s"
,
name
);
snprintf
(
rpath
,
sizeof
(
rpath
),
".%s"
,
name
);
if
(
fstatat
(
mntns_root
,
rpath
,
&
st
,
0
))
{
if
(
fstatat
(
mntns_root
,
rpath
,
&
st
,
0
))
{
pr_perror
(
"Can't stat socket %
d
(%s)"
,
pr_perror
(
"Can't stat socket %
#x
(%s)"
,
m
->
udiag_ino
,
rpath
);
m
->
udiag_ino
,
rpath
);
goto
skip
;
goto
skip
;
}
}
...
...
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