diff options
author | mav <mav@FreeBSD.org> | 2014-05-08 06:55:48 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-05-08 06:55:48 +0000 |
commit | 246a5ae3a0e73281e07ad2f26b1e62374f1bccf3 (patch) | |
tree | 990f955420fad3993aaccd0eaf2be56e1d0adb67 /sys/cam/cam_xpt.c | |
parent | 48c2f6d38bfade922f8a85153b50062ae9b3e1b1 (diff) | |
download | FreeBSD-src-246a5ae3a0e73281e07ad2f26b1e62374f1bccf3.zip FreeBSD-src-246a5ae3a0e73281e07ad2f26b1e62374f1bccf3.tar.gz |
MFC r260509:
Replace several instances of -1 with appropriate CAM_*_WILDCARD and types.
It was equal before r259397, but for good or bad, not any more for LUNs.
This change fixes at least CAM debugging.
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r-- | sys/cam/cam_xpt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 5444d0a..2954415 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -1992,13 +1992,15 @@ xptplistperiphfunc(struct cam_periph *periph, void *arg) cdm->matches[j].result.periph_result.target_id = periph->path->target->target_id; else - cdm->matches[j].result.periph_result.target_id = -1; + cdm->matches[j].result.periph_result.target_id = + CAM_TARGET_WILDCARD; if (periph->path->device) cdm->matches[j].result.periph_result.target_lun = periph->path->device->lun_id; else - cdm->matches[j].result.periph_result.target_lun = -1; + cdm->matches[j].result.periph_result.target_lun = + CAM_LUN_WILDCARD; cdm->matches[j].result.periph_result.unit_number = periph->unit_number; |