diff options
author | sos <sos@FreeBSD.org> | 2002-08-12 20:08:00 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-08-12 20:08:00 +0000 |
commit | ded1392c5ae26a6a67c8572ca379502c4ab6642c (patch) | |
tree | dac3b72d2ecd4574b09679fbf717ea9d7eb2619a /sys/dev | |
parent | 705964161caf5a6208d7516f8515aa1357b9628b (diff) | |
download | FreeBSD-src-ded1392c5ae26a6a67c8572ca379502c4ab6642c.zip FreeBSD-src-ded1392c5ae26a6a67c8572ca379502c4ab6642c.tar.gz |
Shut up warning in debug code.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ata/atapi-cam.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ata/atapi-cam.c b/sys/dev/ata/atapi-cam.c index 249baeb..d34e4ea 100644 --- a/sys/dev/ata/atapi-cam.c +++ b/sys/dev/ata/atapi-cam.c @@ -611,14 +611,14 @@ cam_rescan(struct cam_sim *sim) struct cam_path *path; union ccb *ccb = malloc(sizeof(union ccb), M_ATACAM, M_WAITOK | M_ZERO); -#ifdef CAMDEBUG - xpt_print_path(cam_sim_path(sim)); - printf ("rescanning ATAPI bus.\n"); -#endif if (xpt_create_path(&path, xpt_periph, cam_sim_path(sim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) return; - + +#ifdef CAMDEBUG + xpt_print_path(path); + printf ("rescanning ATAPI bus.\n"); +#endif xpt_setup_ccb(&ccb->ccb_h, path, 5/*priority (low)*/); ccb->ccb_h.func_code = XPT_SCAN_BUS; ccb->ccb_h.cbfcnp = cam_rescan_callback; |