diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2010-03-05 22:35:02 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-07 02:24:18 -0500 |
commit | e641de37e67953fa9ecad72608942481a5d66a1d (patch) | |
tree | f9220a518ce6665e66c9e969f8f92d9564dadf3f /drivers/scsi/bfa/fdmi.c | |
parent | 8b651b4294e67789028982d18779a9ebe75c2b8a (diff) |
[SCSI] bfa: Replace bfa_assert() with bfa_sm_fault()
Replace bfa_assert() with bfa_sm_fault() to get unhandled events for
debugging.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/fdmi.c')
-rw-r--r-- | drivers/scsi/bfa/fdmi.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/scsi/bfa/fdmi.c b/drivers/scsi/bfa/fdmi.c index d76d9220b6e6..e8120868701b 100644 --- a/drivers/scsi/bfa/fdmi.c +++ b/drivers/scsi/bfa/fdmi.c | |||
@@ -158,7 +158,7 @@ bfa_fcs_port_fdmi_sm_offline(struct bfa_fcs_port_fdmi_s *fdmi, | |||
158 | break; | 158 | break; |
159 | 159 | ||
160 | default: | 160 | default: |
161 | bfa_assert(0); | 161 | bfa_sm_fault(port->fcs, event); |
162 | } | 162 | } |
163 | } | 163 | } |
164 | 164 | ||
@@ -183,7 +183,7 @@ bfa_fcs_port_fdmi_sm_sending_rhba(struct bfa_fcs_port_fdmi_s *fdmi, | |||
183 | break; | 183 | break; |
184 | 184 | ||
185 | default: | 185 | default: |
186 | bfa_assert(0); | 186 | bfa_sm_fault(port->fcs, event); |
187 | } | 187 | } |
188 | } | 188 | } |
189 | 189 | ||
@@ -230,7 +230,7 @@ bfa_fcs_port_fdmi_sm_rhba(struct bfa_fcs_port_fdmi_s *fdmi, | |||
230 | break; | 230 | break; |
231 | 231 | ||
232 | default: | 232 | default: |
233 | bfa_assert(0); | 233 | bfa_sm_fault(port->fcs, event); |
234 | } | 234 | } |
235 | } | 235 | } |
236 | 236 | ||
@@ -258,7 +258,7 @@ bfa_fcs_port_fdmi_sm_rhba_retry(struct bfa_fcs_port_fdmi_s *fdmi, | |||
258 | break; | 258 | break; |
259 | 259 | ||
260 | default: | 260 | default: |
261 | bfa_assert(0); | 261 | bfa_sm_fault(port->fcs, event); |
262 | } | 262 | } |
263 | } | 263 | } |
264 | 264 | ||
@@ -286,7 +286,7 @@ bfa_fcs_port_fdmi_sm_sending_rprt(struct bfa_fcs_port_fdmi_s *fdmi, | |||
286 | break; | 286 | break; |
287 | 287 | ||
288 | default: | 288 | default: |
289 | bfa_assert(0); | 289 | bfa_sm_fault(port->fcs, event); |
290 | } | 290 | } |
291 | } | 291 | } |
292 | 292 | ||
@@ -331,7 +331,7 @@ bfa_fcs_port_fdmi_sm_rprt(struct bfa_fcs_port_fdmi_s *fdmi, | |||
331 | break; | 331 | break; |
332 | 332 | ||
333 | default: | 333 | default: |
334 | bfa_assert(0); | 334 | bfa_sm_fault(port->fcs, event); |
335 | } | 335 | } |
336 | } | 336 | } |
337 | 337 | ||
@@ -359,7 +359,7 @@ bfa_fcs_port_fdmi_sm_rprt_retry(struct bfa_fcs_port_fdmi_s *fdmi, | |||
359 | break; | 359 | break; |
360 | 360 | ||
361 | default: | 361 | default: |
362 | bfa_assert(0); | 362 | bfa_sm_fault(port->fcs, event); |
363 | } | 363 | } |
364 | } | 364 | } |
365 | 365 | ||
@@ -387,7 +387,7 @@ bfa_fcs_port_fdmi_sm_sending_rpa(struct bfa_fcs_port_fdmi_s *fdmi, | |||
387 | break; | 387 | break; |
388 | 388 | ||
389 | default: | 389 | default: |
390 | bfa_assert(0); | 390 | bfa_sm_fault(port->fcs, event); |
391 | } | 391 | } |
392 | } | 392 | } |
393 | 393 | ||
@@ -431,7 +431,7 @@ bfa_fcs_port_fdmi_sm_rpa(struct bfa_fcs_port_fdmi_s *fdmi, | |||
431 | break; | 431 | break; |
432 | 432 | ||
433 | default: | 433 | default: |
434 | bfa_assert(0); | 434 | bfa_sm_fault(port->fcs, event); |
435 | } | 435 | } |
436 | } | 436 | } |
437 | 437 | ||
@@ -459,7 +459,7 @@ bfa_fcs_port_fdmi_sm_rpa_retry(struct bfa_fcs_port_fdmi_s *fdmi, | |||
459 | break; | 459 | break; |
460 | 460 | ||
461 | default: | 461 | default: |
462 | bfa_assert(0); | 462 | bfa_sm_fault(port->fcs, event); |
463 | } | 463 | } |
464 | } | 464 | } |
465 | 465 | ||
@@ -478,7 +478,7 @@ bfa_fcs_port_fdmi_sm_online(struct bfa_fcs_port_fdmi_s *fdmi, | |||
478 | break; | 478 | break; |
479 | 479 | ||
480 | default: | 480 | default: |
481 | bfa_assert(0); | 481 | bfa_sm_fault(port->fcs, event); |
482 | } | 482 | } |
483 | } | 483 | } |
484 | 484 | ||