On 29.05.2019 16:10, SAITOH Masanobu wrote:
> Hi.
>
> While compiling i386/conf/ALL
>
>> ../../../../arch/i386/i386/trap.c: In function 'trap':
>> ../../../../arch/i386/i386/trap.c:470:61: error: format '%lx' expects argument of type 'long unsigned int', but argument 7 has type 'register_t {aka int}' [-Werror=format=]
>> printf("pid %d.%d (%s): BUS/SEGV (%#x) at eip %#x addr %#lx\n",
>> ~~~^
>> %#x
>> p->p_pid, l->l_lid, p->p_comm, type, frame->tf_eip, rcr2());
>> ~~~~~~
>> ../../../../arch/i386/i386/trap.c:511:50: error: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'register_t {aka int}' [-Werror=format=]
>> printf("pid %d.%d (%s): ILL at eip %#x addr %#lx\n",
>> ~~~^
>> %#x
>> p->p_pid, l->l_lid, p->p_comm, frame->tf_eip, rcr2());
>> ~~~~~~
>> cc1: all warnings being treated as errors
>> *** [trap.o] Error code 1
>
>
Please use PRIxREGISTER.
Attachment:
signature.asc
Description: OpenPGP digital signature