]> git.hungrycats.org Git - linux/commitdiff
Preface the "asserting atn" diagnostic with controller/target information.
authorJustin T. Gibbs <gibbs@overdrive.btc.adaptec.com>
Mon, 30 Dec 2002 11:40:51 +0000 (04:40 -0700)
committerJustin T. Gibbs <gibbs@overdrive.btc.adaptec.com>
Mon, 30 Dec 2002 11:40:51 +0000 (04:40 -0700)
Correct a compilation warning that occurs when debugging code is
compiled in.

drivers/scsi/aic7xxx/aic79xx_core.c

index 5c0951af77c6034fd320ca21b84fd49c4624655f..a288ed9f9b3e5e985bc95afb25198b7348733af8 100644 (file)
@@ -37,7 +37,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGES.
  *
- * $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#147 $
+ * $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#148 $
  *
  * $FreeBSD$
  */
@@ -3416,8 +3416,10 @@ reswitch:
                         */
                        if (ahd->msgout_len != 0) {
 #ifdef AHD_DEBUG
-                               if ((ahd_debug & AHD_SHOW_MESSAGES) != 0)
+                               if ((ahd_debug & AHD_SHOW_MESSAGES) != 0) {
+                                       ahd_print_devinfo(ahd, &devinfo);
                                        printf("Asserting ATN for response\n");
+                               }
 #endif
                                ahd_assert_atn(ahd);
                        }
@@ -7521,8 +7523,7 @@ ahd_stat_timer(void *arg)
                               "now %sabled. Cmds %d\n",
                               ahd_name(ahd),
                               (enint_coal & ENINT_COALESS) ? "en" : "dis",
-                              ahd->cmdcmplt_total,
-                              ahd->cmdcmplt_counts[ahd->cmdcmplt_bucket]);
+                              ahd->cmdcmplt_total);
 #endif
        }