Make it compiled on 4-stable.

Approved by: re (scottl)
This commit is contained in:
Hidetoshi Shimokawa 2003-05-12 00:42:28 +00:00
parent 8e274c38c2
commit 96c7c6dd58

View File

@ -2304,10 +2304,18 @@ printf("ORB %08x %08x %08x %08x\n", ntohl(ocb->orb[4]), ntohl(ocb->orb[5]), ntoh
}
SBP_DEBUG(1)
printf("%s:%d:%d:%d:XPT_CALC_GEOMETRY: "
#if __FreeBSD_version >= 500000
"Volume size = %jd\n",
device_get_nameunit(sbp->fd.dev), cam_sim_path(sbp->sim),
#else
"Volume size = %d\n",
#endif
device_get_nameunit(sbp->fd.dev),
cam_sim_path(sbp->sim),
ccb->ccb_h.target_id, ccb->ccb_h.target_lun,
(uintmax_t)ccg->volume_size);
#if __FreeBSD_version >= 500000
(uintmax_t)
#endif
ccg->volume_size);
END_DEBUG
size_mb = ccg->volume_size