Print this page
NEX-15925 pseudonex, rootnex, and friends don't need to log useless device announcements
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/pseudonex.c
          +++ new/usr/src/uts/common/io/pseudonex.c
↓ open down ↓ 374 lines elided ↑ open up ↑
 375  375  }
 376  376  
 377  377  static int
 378  378  pseudonex_ctl(dev_info_t *dip, dev_info_t *rdip, ddi_ctl_enum_t ctlop,
 379  379      void *arg, void *result)
 380  380  {
 381  381          switch (ctlop) {
 382  382          case DDI_CTLOPS_REPORTDEV:
 383  383                  if (rdip == NULL)
 384  384                          return (DDI_FAILURE);
 385      -                cmn_err(CE_CONT, "?pseudo-device: %s%d\n",
 386      -                    ddi_driver_name(rdip), ddi_get_instance(rdip));
 387  385                  return (DDI_SUCCESS);
 388  386  
 389  387          case DDI_CTLOPS_INITCHILD:
 390  388          {
 391  389                  char name[12];  /* enough for a decimal integer */
 392  390                  int instance = -1;
 393  391                  dev_info_t *child = (dev_info_t *)arg;
 394  392                  const char *childname = ddi_driver_name(child);
 395  393                  char **childlist;
 396  394                  uint_t nelems;
↓ open down ↓ 141 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX