Re: git: 05c3e8e87142 - main - Fix 32-bit build after 530d274c15e5.

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Fri, 25 Feb 2022 16:57:09 UTC
On 25.02.2022 11:39, Yuri wrote:
> Alexander Motin wrote:
>> The branch main has been updated by mav:
>>
>> URL: https://cgit.FreeBSD.org/src/commit/?id=05c3e8e87142a8689503a6731237b48fb43c1bec
>>
>> commit 05c3e8e87142a8689503a6731237b48fb43c1bec
>> Author:     Alexander Motin <mav@FreeBSD.org>
>> AuthorDate: 2022-02-24 23:10:47 +0000
>> Commit:     Alexander Motin <mav@FreeBSD.org>
>> CommitDate: 2022-02-24 23:11:36 +0000
>>
>>      Fix 32-bit build after 530d274c15e5.
>>      
>>      MFC after:      3 days
>> ---
>>   sys/cam/ctl/ctl.c | 40 ++++++++++++++++++++--------------------
>>   1 file changed, 20 insertions(+), 20 deletions(-)
>>
>> diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
>> index a772c0fd92e1..d6859716bcaa 100644
>> --- a/sys/cam/ctl/ctl.c
>> +++ b/sys/cam/ctl/ctl.c
>> @@ -1104,8 +1104,8 @@ ctl_isc_ua(struct ctl_softc *softc, union ctl_ha_msg *msg, int len)
>>   	uint32_t iid;
>>   
>>   	if (len < sizeof(msg->ua)) {
>> -		printf("%s: Received truncated message %d < %lu\n",
>> -		    __func__, len, sizeof(msg->ua));
>> +		printf("%s: Received truncated message %d < %d\n",
>> +		    __func__, len, (int)sizeof(msg->ua));
> 
> Sorry for chiming in but don't we have 'z' (i.e. "%zu") modifier exactly
> for size_t arguments?

I was worrying about offsetof() type, but seems like it works there too. 
  Fixed.  Thanks.

-- 
Alexander Motin