summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-05-12 00:42:28 +0000
committersimokawa <simokawa@FreeBSD.org>2003-05-12 00:42:28 +0000
commit6d94cd1e18844aefcc39c20d259853511b278015 (patch)
tree0a52170d8592d0114c9a3753fbe3411fb444e3b1
parent190f2bb71dc0963cd6b3a83e85940c1cf3f16ca0 (diff)
downloadFreeBSD-src-6d94cd1e18844aefcc39c20d259853511b278015.zip
FreeBSD-src-6d94cd1e18844aefcc39c20d259853511b278015.tar.gz
Make it compiled on 4-stable.
Approved by: re (scottl)
-rw-r--r--sys/dev/firewire/sbp.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c
index 7a780f9..4afd911 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
OpenPOWER on IntegriCloud