Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
27005516
Commit
27005516
authored
Oct 01, 2003
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Oct 01, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast time_t to long for printing.
parent
4c1fa161
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
registry.c
server/registry.c
+1
-1
trace.c
server/trace.c
+9
-9
make_requests
tools/make_requests
+3
-0
No files found.
server/registry.c
View file @
27005516
...
...
@@ -265,7 +265,7 @@ static void save_subkeys( const struct key *key, const struct key *base, FILE *f
{
fprintf
(
f
,
"
\n
["
);
if
(
key
!=
base
)
dump_path
(
key
,
base
,
f
);
fprintf
(
f
,
"] %ld
\n
"
,
key
->
modif
);
fprintf
(
f
,
"] %ld
\n
"
,
(
long
)
key
->
modif
);
for
(
i
=
0
;
i
<=
key
->
last_value
;
i
++
)
dump_value
(
&
key
->
values
[
i
],
f
);
}
for
(
i
=
0
;
i
<=
key
->
last_subkey
;
i
++
)
save_subkeys
(
key
->
subkeys
[
i
],
base
,
f
);
...
...
server/trace.c
View file @
27005516
...
...
@@ -542,8 +542,8 @@ static void dump_get_thread_info_reply( const struct get_thread_info_reply *req
fprintf
(
stderr
,
" exit_code=%d,"
,
req
->
exit_code
);
fprintf
(
stderr
,
" priority=%d,"
,
req
->
priority
);
fprintf
(
stderr
,
" affinity=%d,"
,
req
->
affinity
);
fprintf
(
stderr
,
" creation_time=%ld,"
,
req
->
creation_time
);
fprintf
(
stderr
,
" exit_time=%ld"
,
req
->
exit_time
);
fprintf
(
stderr
,
" creation_time=%ld,"
,
(
long
)
req
->
creation_time
);
fprintf
(
stderr
,
" exit_time=%ld"
,
(
long
)
req
->
exit_time
);
}
static
void
dump_set_thread_info_request
(
const
struct
set_thread_info_request
*
req
)
...
...
@@ -870,8 +870,8 @@ static void dump_truncate_file_request( const struct truncate_file_request *req
static
void
dump_set_file_time_request
(
const
struct
set_file_time_request
*
req
)
{
fprintf
(
stderr
,
" handle=%p,"
,
req
->
handle
);
fprintf
(
stderr
,
" access_time=%ld,"
,
req
->
access_time
);
fprintf
(
stderr
,
" write_time=%ld"
,
req
->
write_time
);
fprintf
(
stderr
,
" access_time=%ld,"
,
(
long
)
req
->
access_time
);
fprintf
(
stderr
,
" write_time=%ld"
,
(
long
)
req
->
write_time
);
}
static
void
dump_flush_file_request
(
const
struct
flush_file_request
*
req
)
...
...
@@ -893,9 +893,9 @@ static void dump_get_file_info_reply( const struct get_file_info_reply *req )
{
fprintf
(
stderr
,
" type=%d,"
,
req
->
type
);
fprintf
(
stderr
,
" attr=%d,"
,
req
->
attr
);
fprintf
(
stderr
,
" access_time=%ld,"
,
req
->
access_time
);
fprintf
(
stderr
,
" write_time=%ld,"
,
req
->
write_time
);
fprintf
(
stderr
,
" change_time=%ld,"
,
req
->
change_time
);
fprintf
(
stderr
,
" access_time=%ld,"
,
(
long
)
req
->
access_time
);
fprintf
(
stderr
,
" write_time=%ld,"
,
(
long
)
req
->
write_time
);
fprintf
(
stderr
,
" change_time=%ld,"
,
(
long
)
req
->
change_time
);
fprintf
(
stderr
,
" size_high=%d,"
,
req
->
size_high
);
fprintf
(
stderr
,
" size_low=%d,"
,
req
->
size_low
);
fprintf
(
stderr
,
" alloc_high=%d,"
,
req
->
alloc_high
);
...
...
@@ -1507,7 +1507,7 @@ static void dump_create_key_request( const struct create_key_request *req )
fprintf
(
stderr
,
" parent=%p,"
,
req
->
parent
);
fprintf
(
stderr
,
" access=%08x,"
,
req
->
access
);
fprintf
(
stderr
,
" options=%08x,"
,
req
->
options
);
fprintf
(
stderr
,
" modif=%ld,"
,
req
->
modif
);
fprintf
(
stderr
,
" modif=%ld,"
,
(
long
)
req
->
modif
);
fprintf
(
stderr
,
" namelen=%d,"
,
req
->
namelen
);
fprintf
(
stderr
,
" name="
);
dump_varargs_unicode_str
(
min
(
cur_size
,
req
->
namelen
)
);
...
...
@@ -1555,7 +1555,7 @@ static void dump_enum_key_reply( const struct enum_key_reply *req )
fprintf
(
stderr
,
" values=%d,"
,
req
->
values
);
fprintf
(
stderr
,
" max_value=%d,"
,
req
->
max_value
);
fprintf
(
stderr
,
" max_data=%d,"
,
req
->
max_data
);
fprintf
(
stderr
,
" modif=%ld,"
,
req
->
modif
);
fprintf
(
stderr
,
" modif=%ld,"
,
(
long
)
req
->
modif
);
fprintf
(
stderr
,
" total=%d,"
,
req
->
total
);
fprintf
(
stderr
,
" namelen=%d,"
,
req
->
namelen
);
fprintf
(
stderr
,
" name="
);
...
...
tools/make_requests
View file @
27005516
...
...
@@ -269,6 +269,9 @@ sub DO_DUMP_FUNC
push
@trace_lines
,
" fprintf( stderr, \" $var=$formats{$type}"
;
push
@trace_lines
,
","
if
(
$#_
>
0
);
push
@trace_lines
,
"\", "
;
# In the case of time_t we need to cast the parameter to
# long to match the associated "%ld" printf modifier.
push
@trace_lines
,
"(long)"
if
(
$type
eq
"time_t"
);
push
@trace_lines
,
"req->$var );\n"
;
}
}
...
...
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