# pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)

3 messages from 2005-11-23 to 2005-11-23. Participants: Morten Welinder, H. Peter Anvin, YOSHIFUJI Hideaki / 吉藤英明.
Thread: https://gitlist.dev/t/2656

## YOSHIFUJI Hideaki / 吉藤英明, 2005-11-23 00:49

Subject: Re: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
Message-ID: <20051123.094959.53535561.yoshfuji@linux-ipv6.org>
URL: https://gitlist.dev/e/20051123.094959.53535561.yoshfuji%40linux-ipv6.org
In-Reply-To: <4383CA08.4080604@zytor.com>

```
In article <4383CA08.4080604@zytor.com> (at Tue, 22 Nov 2005 17:46:48 -0800), "H. Peter Anvin" <hpa@zytor.com> says:

> Morten Welinder wrote:
> > Maybe cast the size to unsigned long to make it match the format.
> > 
> > M.
> > 
> > pack-redundant.c: In function `main':
> > pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
> 
> Or use %zu for the format.

It is not widely supported, I think.

--yoshfuji

```

## Morten Welinder, 2005-11-23 01:34

Subject: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
Message-ID: <118833cc0511221734r33b20f6au97fe2e93243f5ccf@mail.gmail.com>
URL: https://gitlist.dev/e/118833cc0511221734r33b20f6au97fe2e93243f5ccf%40mail.gmail.com

```
Maybe cast the size to unsigned long to make it match the format.

M.


pack-redundant.c: In function `main':
pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)

```

## H. Peter Anvin, 2005-11-23 01:46

Subject: Re: pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)
Message-ID: <4383CA08.4080604@zytor.com>
URL: https://gitlist.dev/e/4383CA08.4080604%40zytor.com
In-Reply-To: <118833cc0511221734r33b20f6au97fe2e93243f5ccf@mail.gmail.com>

```
Morten Welinder wrote:
> Maybe cast the size to unsigned long to make it match the format.
> 
> M.
> 
> pack-redundant.c: In function `main':
> pack-redundant.c:689: warning: long unsigned int format, size_t arg (arg 3)

Or use %zu for the format.

	-hpa

```
