Print this page
LOCAL: mpt_sas target should show enclosure/slot IDs

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/modules/mpt_sas/mpt_sas.c
          +++ new/usr/src/cmd/mdb/common/modules/mpt_sas/mpt_sas.c
↓ open down ↓ 278 lines elided ↑ open up ↑
 279  279  
 280  280          mdb_printf("\n");
 281  281          mdb_printf("The SCSI target information\n");
 282  282          ptgt = (mptsas_target_t *)hash_traverse(&s->m_tgttbl,
 283  283              MPTSAS_HASH_FIRST, sizeof (mptsas_target_t));
 284  284          while (ptgt != NULL) {
 285  285                  mdb_printf("\n");
 286  286                  mdb_printf("devhdl %x, sasaddress %"PRIx64", phymask %x,"
 287  287                      "devinfo %x\n", ptgt->m_devhdl, ptgt->m_sas_wwn,
 288  288                      ptgt->m_phymask, ptgt->m_deviceinfo);
 289      -                mdb_printf("throttle %x, dr_flag %x, m_t_ncmds %x\n",
 290      -                    ptgt->m_t_throttle, ptgt->m_dr_flag, ptgt->m_t_ncmds);
      289 +                mdb_printf("throttle %x, dr_flag %x, m_t_ncmds %x, "
      290 +                    "enclosure %x, slot_num %x\n", ptgt->m_t_throttle,
      291 +                    ptgt->m_dr_flag, ptgt->m_t_ncmds, ptgt->m_enclosure,
      292 +                    ptgt->m_slot_num);
 291  293  
 292  294                  mdb_free(ptgt, sizeof (mptsas_target_t));
 293  295                  ptgt = (mptsas_target_t *)hash_traverse(
 294  296                      &s->m_tgttbl, MPTSAS_HASH_NEXT, sizeof (mptsas_target_t));
 295  297          }
 296  298          mdb_printf("\n");
 297  299          mdb_printf("The smp child information\n");
 298  300          psmp = (mptsas_smp_t *)hash_traverse(&s->m_smptbl,
 299  301              MPTSAS_HASH_FIRST, sizeof (mptsas_smp_t));
 300  302          while (psmp != NULL) {
↓ open down ↓ 546 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX