Commit 1909f156 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Fix printf format warnings on ARM platforms.

parent 755d7833
...@@ -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) +
......
...@@ -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%08x", stack[pos+1], stack[pos] ); TRACE( "%lx%08lx", stack[pos+1], stack[pos] );
pos += 2; pos += 2;
break; break;
case 'k': /* int128 */ case 'k': /* int128 */
TRACE( "{%08x,%08x,%08x,%08x}", stack[pos], stack[pos+1], stack[pos+2], stack[pos+3] ); TRACE( "{%08lx,%08lx,%08lx,%08lx}", 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( "%08lx", 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=%08lx\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=%08lx\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=%08lx\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 );
......
...@@ -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]=%08lx\n", c, rec->ExceptionInformation[c] ); TRACE( " info[%ld]=%08Ix\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.%ld, aborting\n", MESSAGE( "wine: Call from %p to unimplemented function %s.%Id, 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 %lx sp %lx func %lx\n", type, pc, context->Sp, base + func->BeginAddress ); TRACE( "type %lx pc %Ix 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]=%016lx\n", i, rec->ExceptionInformation[i] ); TRACE( " info[%ld]=%08Ix\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",
......
...@@ -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 %lu\n", value);
#else #else
ok(value == 64, "Expected 64, got %lu\n", value); ok(value == 64, "Expected 64, got %lu\n", value);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment