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
1909f156
Commit
1909f156
authored
Dec 08, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fix printf format warnings on ARM platforms.
parent
755d7833
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
loader.c
dlls/ntdll/loader.c
+1
-1
relay.c
dlls/ntdll/relay.c
+6
-6
signal_arm.c
dlls/ntdll/signal_arm.c
+4
-4
exception.c
dlls/ntdll/tests/exception.c
+0
-0
info.c
dlls/ntdll/tests/info.c
+1
-1
No files found.
dlls/ntdll/loader.c
View file @
1909f156
...
...
@@ -3380,7 +3380,7 @@ IMAGE_BASE_RELOCATION * WINAPI LdrProcessRelocationBlock( void *page, UINT count
#elif defined(__arm__)
case
IMAGE_REL_BASED_THUMB_MOV32
:
{
DWORD
*
inst
=
(
DWORD
*
)((
char
*
)
page
+
offset
);
UINT
*
inst
=
(
UINT
*
)((
char
*
)
page
+
offset
);
WORD
lo
=
((
inst
[
0
]
<<
1
)
&
0x0800
)
+
((
inst
[
0
]
<<
12
)
&
0xf000
)
+
((
inst
[
0
]
>>
20
)
&
0x0700
)
+
((
inst
[
0
]
>>
16
)
&
0x00ff
);
WORD
hi
=
((
inst
[
1
]
<<
1
)
&
0x0800
)
+
((
inst
[
1
]
<<
12
)
&
0xf000
)
+
...
...
dlls/ntdll/relay.c
View file @
1909f156
...
...
@@ -468,11 +468,11 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
{
case
'j'
:
/* int64 */
pos
=
(
pos
+
1
)
&
~
1
;
TRACE
(
"%
x%08
x"
,
stack
[
pos
+
1
],
stack
[
pos
]
);
TRACE
(
"%
lx%08l
x"
,
stack
[
pos
+
1
],
stack
[
pos
]
);
pos
+=
2
;
break
;
case
'k'
:
/* int128 */
TRACE
(
"{%08
x,%08x,%08x,%08
x}"
,
stack
[
pos
],
stack
[
pos
+
1
],
stack
[
pos
+
2
],
stack
[
pos
+
3
]
);
TRACE
(
"{%08
lx,%08lx,%08lx,%08l
x}"
,
stack
[
pos
],
stack
[
pos
+
1
],
stack
[
pos
+
2
],
stack
[
pos
+
3
]
);
pos
+=
4
;
break
;
case
's'
:
/* str */
...
...
@@ -507,7 +507,7 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
break
;
case
'i'
:
/* long */
default
:
TRACE
(
"%08x"
,
stack
[
pos
++
]
);
TRACE
(
"%08
l
x"
,
stack
[
pos
++
]
);
break
;
}
if
(
!
is_ret_val
(
arg_types
[
i
+
1
]
))
TRACE
(
","
);
...
...
@@ -521,7 +521,7 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
}
#endif
*
nb_args
=
pos
;
TRACE
(
") ret=%08x
\n
"
,
stack
[
-
1
]
);
TRACE
(
") ret=%08
l
x
\n
"
,
stack
[
-
1
]
);
return
entry_point
->
orig_func
;
}
...
...
@@ -537,10 +537,10 @@ DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigne
while
(
!
is_ret_val
(
*
arg_types
))
arg_types
++
;
if
(
*
arg_types
==
'J'
)
/* int64 return value */
TRACE
(
" retval=%08x%08x ret=%08x
\n
"
,
TRACE
(
" retval=%08x%08x ret=%08
l
x
\n
"
,
(
UINT
)(
retval
>>
32
),
(
UINT
)
retval
,
retaddr
);
else
TRACE
(
" retval=%08x ret=%08x
\n
"
,
(
UINT
)
retval
,
retaddr
);
TRACE
(
" retval=%08x ret=%08
l
x
\n
"
,
(
UINT
)
retval
,
retaddr
);
}
extern
LONGLONG
WINAPI
relay_call
(
struct
relay_descr
*
descr
,
unsigned
int
idx
,
const
DWORD
*
stack
);
...
...
dlls/ntdll/signal_arm.c
View file @
1909f156
...
...
@@ -463,7 +463,7 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
TRACE
(
"code=%lx flags=%lx addr=%p pc=%08lx
\n
"
,
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
,
rec
->
ExceptionAddress
,
context
->
Pc
);
for
(
c
=
0
;
c
<
rec
->
NumberParameters
;
c
++
)
TRACE
(
" info[%ld]=%08
l
x
\n
"
,
c
,
rec
->
ExceptionInformation
[
c
]
);
TRACE
(
" info[%ld]=%08
I
x
\n
"
,
c
,
rec
->
ExceptionInformation
[
c
]
);
if
(
rec
->
ExceptionCode
==
EXCEPTION_WINE_STUB
)
{
...
...
@@ -472,7 +472,7 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
rec
->
ExceptionAddress
,
(
char
*
)
rec
->
ExceptionInformation
[
0
],
(
char
*
)
rec
->
ExceptionInformation
[
1
]
);
else
MESSAGE
(
"wine: Call from %p to unimplemented function %s.%
l
d, aborting
\n
"
,
MESSAGE
(
"wine: Call from %p to unimplemented function %s.%
I
d, aborting
\n
"
,
rec
->
ExceptionAddress
,
(
char
*
)
rec
->
ExceptionInformation
[
0
],
rec
->
ExceptionInformation
[
1
]
);
}
...
...
@@ -1061,7 +1061,7 @@ PVOID WINAPI RtlVirtualUnwind( ULONG type, ULONG_PTR base, ULONG_PTR pc,
{
void
*
handler
;
TRACE
(
"type %lx pc %
l
x sp %lx func %lx
\n
"
,
type
,
pc
,
context
->
Sp
,
base
+
func
->
BeginAddress
);
TRACE
(
"type %lx pc %
I
x sp %lx func %lx
\n
"
,
type
,
pc
,
context
->
Sp
,
base
+
func
->
BeginAddress
);
*
handler_data
=
NULL
;
...
...
@@ -1226,7 +1226,7 @@ void WINAPI RtlUnwindEx( PVOID end_frame, PVOID target_ip, EXCEPTION_RECORD *rec
TRACE
(
"code=%lx flags=%lx end_frame=%p target_ip=%p pc=%08lx
\n
"
,
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
,
end_frame
,
target_ip
,
context
->
Pc
);
for
(
i
=
0
;
i
<
min
(
EXCEPTION_MAXIMUM_PARAMETERS
,
rec
->
NumberParameters
);
i
++
)
TRACE
(
" info[%ld]=%0
16l
x
\n
"
,
i
,
rec
->
ExceptionInformation
[
i
]
);
TRACE
(
" info[%ld]=%0
8I
x
\n
"
,
i
,
rec
->
ExceptionInformation
[
i
]
);
TRACE
(
" r0=%08lx r1=%08lx r2=%08lx r3=%08lx
\n
"
,
context
->
R0
,
context
->
R1
,
context
->
R2
,
context
->
R3
);
TRACE
(
" r4=%08lx r5=%08lx r6=%08lx r7=%08lx
\n
"
,
...
...
dlls/ntdll/tests/exception.c
View file @
1909f156
This diff is collapsed.
Click to expand it.
dlls/ntdll/tests/info.c
View file @
1909f156
...
...
@@ -3288,7 +3288,7 @@ static void test_query_data_alignment(void)
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08lx
\n
"
,
status
);
ok
(
sizeof
(
value
)
==
ReturnLength
,
"Inconsistent length %lu
\n
"
,
ReturnLength
);
#ifdef __arm__
ok
(
value
==
32
,
"Expected 32, got %u
\n
"
,
value
);
ok
(
value
==
32
,
"Expected 32, got %
l
u
\n
"
,
value
);
#else
ok
(
value
==
64
,
"Expected 64, got %lu
\n
"
,
value
);
#endif
...
...
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