diff options
author | simokawa <simokawa@FreeBSD.org> | 2007-03-16 02:29:36 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2007-03-16 02:29:36 +0000 |
commit | 5b44b334d4158057cbcedc79abd55d79589419a6 (patch) | |
tree | ff0dcf7b315ee94629df0fdf394487f5f1f7fee9 /sys | |
parent | 6459403e6fb175bea7dc8a3dc681c33cee4ac933 (diff) | |
download | FreeBSD-src-5b44b334d4158057cbcedc79abd55d79589419a6.zip FreeBSD-src-5b44b334d4158057cbcedc79abd55d79589419a6.tar.gz |
Print warning for large DFLTPHYS.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/firewire/sbp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/firewire/sbp.c b/sys/dev/firewire/sbp.c index 0967652..ed4178a 100644 --- a/sys/dev/firewire/sbp.c +++ b/sys/dev/firewire/sbp.c @@ -1915,6 +1915,11 @@ sbp_attach(device_t dev) struct fw_xfer *xfer; int i, s, error; + if (DFLTPHYS > SBP_MAXPHYS) + device_printf(dev, "Warning, DFLTPHYS(%dKB) is larger than " + "SBP_MAXPHYS(%dKB).\n", DFLTPHYS / 1024, + SBP_MAXPHYS / 1024); + SBP_DEBUG(0) printf("sbp_attach (cold=%d)\n", cold); END_DEBUG |