diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2002-08-12 20:08:00 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2002-08-12 20:08:00 +0000 |
| commit | 242d59f390ca585a8e9ede43cf0b32fb7b9be105 (patch) | |
| tree | dac3b72d2ecd4574b09679fbf717ea9d7eb2619a | |
| parent | f350abf81491e0c03827f0826f4516d1c0f61d6a (diff) | |
Notes
| -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 249baeb3297a..d34e4eab6406 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; |
