Date: Mon, 16 May 2011 17:47:40 -0400 From: John Baldwin <jhb@freebsd.org> To: "Poul-Henning Kamp" <phk@phk.freebsd.dk> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Pawel Jakub Dawidek <pjd@freebsd.org> Subject: Re: svn commit: r221993 - in head/sys: kern sys Message-ID: <201105161747.40824.jhb@freebsd.org> In-Reply-To: <20914.1305577631@critter.freebsd.dk> References: <20914.1305577631@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, May 16, 2011 4:27:11 pm Poul-Henning Kamp wrote: > In message <20110516193833.GA2020@garage.freebsd.pl>, Pawel Jakub Dawidek write > s: > > >> - ("wrote past end of sbuf (%d >=3D %d)", s->s_len, s->s_size)); > >> + ("wrote past end of sbuf (%jd >=3D %jd)", > >> + (intmax_t)s->s_len, (intmax_t)s->s_size)); > > > >For ssize_t we have %zd. > > Yes I know, but sbufs are used on platforms where %z is not available > so I prefer to use %jd, in particular since this is only assert strings. Really? They have %j but not %z? intmax_t is newer than size_t. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105161747.40824.jhb>