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
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
...
@@ -3380,7 +3380,7 @@ IMAGE_BASE_RELOCATION * WINAPI LdrProcessRelocationBlock( void *page, UINT count
#elif defined(__arm__)
#elif defined(__arm__)
case
IMAGE_REL_BASED_THUMB_MOV32
:
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
)
+
WORD
lo
=
((
inst
[
0
]
<<
1
)
&
0x0800
)
+
((
inst
[
0
]
<<
12
)
&
0xf000
)
+
((
inst
[
0
]
>>
20
)
&
0x0700
)
+
((
inst
[
0
]
>>
16
)
&
0x00ff
);
((
inst
[
0
]
>>
20
)
&
0x0700
)
+
((
inst
[
0
]
>>
16
)
&
0x00ff
);
WORD
hi
=
((
inst
[
1
]
<<
1
)
&
0x0800
)
+
((
inst
[
1
]
<<
12
)
&
0xf000
)
+
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
...
@@ -468,11 +468,11 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
{
{
case
'j'
:
/* int64 */
case
'j'
:
/* int64 */
pos
=
(
pos
+
1
)
&
~
1
;
pos
=
(
pos
+
1
)
&
~
1
;
TRACE
(
"%
x%08
x"
,
stack
[
pos
+
1
],
stack
[
pos
]
);
TRACE
(
"%
lx%08l
x"
,
stack
[
pos
+
1
],
stack
[
pos
]
);
pos
+=
2
;
pos
+=
2
;
break
;
break
;
case
'k'
:
/* int128 */
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
;
pos
+=
4
;
break
;
break
;
case
's'
:
/* str */
case
's'
:
/* str */
...
@@ -507,7 +507,7 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
...
@@ -507,7 +507,7 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
break
;
break
;
case
'i'
:
/* long */
case
'i'
:
/* long */
default
:
default
:
TRACE
(
"%08x"
,
stack
[
pos
++
]
);
TRACE
(
"%08
l
x"
,
stack
[
pos
++
]
);
break
;
break
;
}
}
if
(
!
is_ret_val
(
arg_types
[
i
+
1
]
))
TRACE
(
","
);
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
...
@@ -521,7 +521,7 @@ DECLSPEC_HIDDEN void * WINAPI relay_trace_entry( struct relay_descr *descr, unsi
}
}
#endif
#endif
*
nb_args
=
pos
;
*
nb_args
=
pos
;
TRACE
(
") ret=%08x
\n
"
,
stack
[
-
1
]
);
TRACE
(
") ret=%08
l
x
\n
"
,
stack
[
-
1
]
);
return
entry_point
->
orig_func
;
return
entry_point
->
orig_func
;
}
}
...
@@ -537,10 +537,10 @@ DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigne
...
@@ -537,10 +537,10 @@ DECLSPEC_HIDDEN void WINAPI relay_trace_exit( struct relay_descr *descr, unsigne
while
(
!
is_ret_val
(
*
arg_types
))
arg_types
++
;
while
(
!
is_ret_val
(
*
arg_types
))
arg_types
++
;
if
(
*
arg_types
==
'J'
)
/* int64 return value */
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
);
(
UINT
)(
retval
>>
32
),
(
UINT
)
retval
,
retaddr
);
else
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
);
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
...
@@ -463,7 +463,7 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
TRACE
(
"code=%lx flags=%lx addr=%p pc=%08lx
\n
"
,
TRACE
(
"code=%lx flags=%lx addr=%p pc=%08lx
\n
"
,
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
,
rec
->
ExceptionAddress
,
context
->
Pc
);
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
,
rec
->
ExceptionAddress
,
context
->
Pc
);
for
(
c
=
0
;
c
<
rec
->
NumberParameters
;
c
++
)
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
)
if
(
rec
->
ExceptionCode
==
EXCEPTION_WINE_STUB
)
{
{
...
@@ -472,7 +472,7 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
...
@@ -472,7 +472,7 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte
rec
->
ExceptionAddress
,
rec
->
ExceptionAddress
,
(
char
*
)
rec
->
ExceptionInformation
[
0
],
(
char
*
)
rec
->
ExceptionInformation
[
1
]
);
(
char
*
)
rec
->
ExceptionInformation
[
0
],
(
char
*
)
rec
->
ExceptionInformation
[
1
]
);
else
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
,
rec
->
ExceptionAddress
,
(
char
*
)
rec
->
ExceptionInformation
[
0
],
rec
->
ExceptionInformation
[
1
]
);
(
char
*
)
rec
->
ExceptionInformation
[
0
],
rec
->
ExceptionInformation
[
1
]
);
}
}
...
@@ -1061,7 +1061,7 @@ PVOID WINAPI RtlVirtualUnwind( ULONG type, ULONG_PTR base, ULONG_PTR pc,
...
@@ -1061,7 +1061,7 @@ PVOID WINAPI RtlVirtualUnwind( ULONG type, ULONG_PTR base, ULONG_PTR pc,
{
{
void
*
handler
;
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
;
*
handler_data
=
NULL
;
...
@@ -1226,7 +1226,7 @@ void WINAPI RtlUnwindEx( PVOID end_frame, PVOID target_ip, EXCEPTION_RECORD *rec
...
@@ -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
"
,
TRACE
(
"code=%lx flags=%lx end_frame=%p target_ip=%p pc=%08lx
\n
"
,
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
,
end_frame
,
target_ip
,
context
->
Pc
);
rec
->
ExceptionCode
,
rec
->
ExceptionFlags
,
end_frame
,
target_ip
,
context
->
Pc
);
for
(
i
=
0
;
i
<
min
(
EXCEPTION_MAXIMUM_PARAMETERS
,
rec
->
NumberParameters
);
i
++
)
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
"
,
TRACE
(
" r0=%08lx r1=%08lx r2=%08lx r3=%08lx
\n
"
,
context
->
R0
,
context
->
R1
,
context
->
R2
,
context
->
R3
);
context
->
R0
,
context
->
R1
,
context
->
R2
,
context
->
R3
);
TRACE
(
" r4=%08lx r5=%08lx r6=%08lx r7=%08lx
\n
"
,
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)
...
@@ -3288,7 +3288,7 @@ static void test_query_data_alignment(void)
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08lx
\n
"
,
status
);
ok
(
status
==
STATUS_SUCCESS
,
"Expected STATUS_SUCCESS, got %08lx
\n
"
,
status
);
ok
(
sizeof
(
value
)
==
ReturnLength
,
"Inconsistent length %lu
\n
"
,
ReturnLength
);
ok
(
sizeof
(
value
)
==
ReturnLength
,
"Inconsistent length %lu
\n
"
,
ReturnLength
);
#ifdef __arm__
#ifdef __arm__
ok
(
value
==
32
,
"Expected 32, got %u
\n
"
,
value
);
ok
(
value
==
32
,
"Expected 32, got %
l
u
\n
"
,
value
);
#else
#else
ok
(
value
==
64
,
"Expected 64, got %lu
\n
"
,
value
);
ok
(
value
==
64
,
"Expected 64, got %lu
\n
"
,
value
);
#endif
#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