Subject: Re: daddr_t change
To: Frank van der Linden <>
From: None <>
List: current-users
Date: 01/25/2003 19:47:12
When DIAGNOSTIC option enabled, build faild with this message.

/usr/src/sys/ufs/ffs/ffs_subr.c: In function `ffs_checkoverlap':
/usr/src/sys/ufs/ffs/ffs_subr.c:177: warning: int format, different type arg (arg 2)
/usr/src/sys/ufs/ffs/ffs_subr.c:177: warning: int format, different type arg (arg 3)
/usr/src/sys/ufs/ffs/ffs_subr.c:177: warning: int format, different type arg (arg 4)

around of ffs_subr.c:177 is

      printf("\tstart %d, end %d overlap start %d, end %ld\n",
          start, last, ep->b_blkno, 
          (long) ep->b_blkno + btodb(ep->b_bcount) - 1);

need to adjust printf format? I'm not sure what is the best way, but
with `%qd', it was compiled fine.

At Fri, 24 Jan 2003 23:16:13 +0100,
Frank van der Linden wrote:
> I have bumped the type used for disk blocks to a 64 bit value. This is
> in preperation for being able to address > 1T devices. This doesn't
> change anything for the on-disk structures.
> However, if you find anything wrong with filesystems after this
> change, please file a PR.
> - Frank
> -- 
> Frank van der Linden                          
> ==============================================================================
> Quality NetBSD Development, Support & Service.
// Hiramatsu Yoshifumi