svn commit: r252435 - in head/sys/ufs: ffs ufs

Pawel Jakub Dawidek pjd at
Thu Jul 4 20:40:49 UTC 2013

On Mon, Jul 01, 2013 at 03:00:16AM +0000, Pedro F. Giffuni wrote:
> Author: pfg
> Date: Mon Jul  1 03:00:15 2013
> New Revision: 252435
> URL:
> Log:
>   Change i_gen in UFS to an unsigned type.
>   In UFS, i_gen is a random generated value and there is not way for
>   it to be negative. Actually, the value of i_gen is just used to
>   match bit patterns and it is of not consequence if the values are
>   signed or not.
>   Following other filesystems, set it to unsigned and use it as such,
>   Discussed by:	mckusick
>   Reviewed by:	mckusick (previous version)
>   MFC after:	4 weeks
>  		printf("ufs_extattr_get (%s): inode number inconsistency (%d, %jd)\n",
> -		    mp->mnt_stat.f_mntonname, ueh.ueh_i_gen, (intmax_t)ip->i_gen);
> +		    mp->mnt_stat.f_mntonname, ueh.ueh_i_gen, (uintmax_t)ip->i_gen);

For uintmax_t you also need to change %jd to %ju.

Pawel Jakub Dawidek             
FreeBSD committer               
Am I Evil? Yes, I Am!           
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <>

More information about the svn-src-head mailing list