Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b3882bb3
Commit
b3882bb3
authored
Jan 19, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Add symbolic names in filesystem change actions traces.
parent
9dbdd8c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
trace.c
server/trace.c
+17
-2
No files found.
server/trace.c
View file @
b3882bb3
...
...
@@ -993,6 +993,18 @@ static void dump_varargs_object_attributes( const char *prefix, data_size_t size
static
void
dump_varargs_filesystem_event
(
const
char
*
prefix
,
data_size_t
size
)
{
static
const
char
*
const
actions
[]
=
{
NULL
,
"ADDED"
,
"REMOVED"
,
"MODIFIED"
,
"RENAMED_OLD_NAME"
,
"RENAMED_NEW_NAME"
,
"ADDED_STREAM"
,
"REMOVED_STREAM"
,
"MODIFIED_STREAM"
};
fprintf
(
stderr
,
"%s{"
,
prefix
);
while
(
size
)
{
...
...
@@ -1000,8 +1012,11 @@ static void dump_varargs_filesystem_event( const char *prefix, data_size_t size
data_size_t
len
=
(
offsetof
(
struct
filesystem_event
,
name
[
event
->
len
]
)
+
sizeof
(
int
)
-
1
)
/
sizeof
(
int
)
*
sizeof
(
int
);
if
(
size
<
len
)
break
;
fprintf
(
stderr
,
"{action=%x,len=%u,name=
\"
%.*s
\"
}"
,
event
->
action
,
event
->
len
,
event
->
len
,
event
->
name
);
if
(
event
->
action
<
sizeof
(
actions
)
/
sizeof
(
actions
[
0
])
&&
actions
[
event
->
action
])
fprintf
(
stderr
,
"{action=%s"
,
actions
[
event
->
action
]
);
else
fprintf
(
stderr
,
"{action=%u"
,
event
->
action
);
fprintf
(
stderr
,
",name=
\"
%.*s
\"
}"
,
event
->
len
,
event
->
name
);
size
-=
len
;
remove_data
(
len
);
if
(
size
)
fputc
(
','
,
stderr
);
...
...
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