Print this page
7491 usr/src/lib/libfru is a mess
Reviewed by: Robert Mustacchi <rm@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/scsi/plugins/ses/SUN/common/sun.c
          +++ new/usr/src/lib/scsi/plugins/ses/SUN/common/sun.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
  26   26  #include <stddef.h>
  27   27  #include <string.h>
  28   28  #include <strings.h>
  29   29  #include <alloca.h>
  30   30  #include <libnvpair.h>
       31 +#include <nvfru.h>
  31   32  
  32   33  #include <scsi/libses.h>
  33   34  #include <scsi/libses_plugin.h>
  34   35  #include <scsi/plugins/ses/framework/libses.h>
  35   36  #include <scsi/plugins/ses/vendor/sun.h>
  36   37  #include <scsi/plugins/ses/vendor/sun_impl.h>
  37   38  
  38      -#include "../../../../../../lib/libfru/libnvfru/nvfru.h"
  39      -
  40   39  int
  41   40  sun_fruid_parse_common(sun_fru_descr_impl_t *sfdip, nvlist_t *nvl)
  42   41  {
  43   42          int nverr;
  44   43  
  45   44          SES_NV_ADD(boolean_value, nverr, nvl,
  46   45              LIBSES_PROP_FRU, sfdip-> sfdi_fru);
  47   46          SES_NV_ADD(uint64, nverr, nvl,
  48   47              LIBSES_PROP_PHYS_PARENT, sfdip->sfdi_parent_element_index);
  49   48  
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX