Re: i386/conf/ALL compile error

SAITOH Masanobu <[email protected]>
Newsgroups gmane.os.netbsd.ports.i386
Message-ID <[email protected]>
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 ([email protected]
                                 [email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.