Fix build of 64 bit platforms.

This commit is contained in:
mux 2002-10-09 12:19:36 +00:00
parent fead2b9a12
commit ddefc9d7d6

View File

@ -527,8 +527,9 @@ out1:
* Write out the list of allocated blocks to the end of the snapshot.
*/
if (ip->i_snapblklist - listhd != ip->i_snaplistsize)
printf("Snaplist mismatch, got %d should be %jd\n",
ip->i_snapblklist - listhd, (intmax_t)ip->i_snaplistsize);
printf("Snaplist mismatch, got %jd should be %jd\n",
(intmax_t)(ip->i_snapblklist - listhd),
(intmax_t)ip->i_snaplistsize);
auio.uio_iov = &aiov;
auio.uio_iovcnt = 1;
aiov.iov_base = (void *)listhd;