From 96c7c6dd58b268fa5f1310081780a33bf644c64a Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Mon, 12 May 2003 00:42:28 +0000 Subject: [PATCH] Make it compiled on 4-stable. Approved by: re (scottl) --- sys/dev/firewire/sbp.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 7a780f995881..4afd9117c500 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -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