cvs commit: src/sys/compat/linprocfs linprocfs.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Jan 21 16:29:51 UTC 2007


On Sat, Jan 20, 2007 at 12:46:53PM -0700, Scott Long wrote:
> Alexander Leidinger wrote:
> >netchild    2007-01-20 19:32:23 UTC
> >  FreeBSD src repository
> >  Modified files:
> >    sys/compat/linprocfs linprocfs.c   Log:
> >  Fix tinderbox build on amd64.
> >    Revision  Changes    Path
> >  1.104     +2 -2      src/sys/compat/linprocfs/linprocfs.c
> 
> Try the following instead:
> 
> --- linprocfs.c 20 Jan 2007 19:32:23 -0000      1.104
> +++ linprocfs.c 20 Jan 2007 19:46:29 -0000
> @@ -474,8 +474,8 @@
>                 state = 'R';
> 
>                 if (ratelimit == 0) {
> -                       printf("linprocfs: don't know how to handle unknown FreeBSD state %d/%jd, mapping to R\n",
> -                           kp.ki_stat, (intmax_t)sizeof(linux_state));
> +                       printf("linprocfs: don't know how to handle unknown FreeBSD state %d/%zd, mapping to R\n",
> +                           kp.ki_stat, sizeof(linux_state));

AFAIK sizeof() returns size_t, which is unsigned, so %zu should be used.
%zd is used for ssize_t.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20070121/c075a204/attachment.pgp


More information about the cvs-src mailing list