diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2013-09-01 17:37:19 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2013-09-01 17:37:19 +0000 |
| commit | 0d4f3c316e35084144f7f9b5d347d82993cad0ca (patch) | |
| tree | 70e1770181c928438fd3c1e01a6bd11d5027405a /sys/cam/cam_debug.h | |
| parent | f4fd4d3470df092b8f262c59707f971a5111654e (diff) | |
Notes
Diffstat (limited to 'sys/cam/cam_debug.h')
| -rw-r--r-- | sys/cam/cam_debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/cam/cam_debug.h b/sys/cam/cam_debug.h index e072ec1c715e1..ecfeb3abc0b04 100644 --- a/sys/cam/cam_debug.h +++ b/sys/cam/cam_debug.h @@ -99,6 +99,17 @@ extern u_int32_t cam_debug_delay; DELAY(cam_debug_delay); \ } +#define CAM_DEBUG_DEV(dev, flag, printfargs) \ + if (((flag) & (CAM_DEBUG_COMPILE) & cam_dflags) \ + && (cam_dpath != NULL) \ + && (xpt_path_comp_dev(cam_dpath, dev) >= 0) \ + && (xpt_path_comp_dev(cam_dpath, dev) < 2)) { \ + xpt_print_device(dev); \ + printf printfargs; \ + if (cam_debug_delay != 0) \ + DELAY(cam_debug_delay); \ + } + #define CAM_DEBUG_PRINT(flag, printfargs) \ if (((flag) & (CAM_DEBUG_COMPILE) & cam_dflags)) { \ printf("cam_debug: "); \ |
