Port-i386 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: i386/conf/ALL compile error
On 2019/05/29 23:12, Kamil Rytarowski wrote:
> 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.
Committed. Thanks!
--
-----------------------------------------------
SAITOH Masanobu (msaitoh%execsw.org@localhost
msaitoh%netbsd.org@localhost)
Home |
Main Index |
Thread Index |
Old Index