Print this page
NEX-14898 Null message (cfga_msg: NULL msgp) printed for sata devices with cfgadm
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Cynthia Eastham <cynthia.eastham@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.h
          +++ new/usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
       24 + * Copyright 2017 Nexenta Systems, Inc. All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   */
  26   27  
  27   28  #ifndef _CFGA_SATA_H
  28   29  #define _CFGA_SATA_H
  29   30  
  30   31  #pragma ident   "%Z%%M% %I%     %E% SMI"
  31   32  
  32   33  #ifdef __cplusplus
  33   34  extern "C" {
↓ open down ↓ 17 lines elided ↑ open up ↑
  51   52  #include <thread.h>
  52   53  #include <assert.h>
  53   54  
  54   55  #define CFGA_PLUGIN_LIB
  55   56  #include <config_admin.h>
  56   57  
  57   58  /*
  58   59   * Debug stuff
  59   60   */
  60   61  #ifdef  DEBUG
  61      -#define DPRINTF printf
       62 +#define DPRINTF (void) printf
  62   63  #else
  63   64  #define DPRINTF 0 &&
  64   65  #endif /* DEBUG */
  65   66  
  66   67  typedef enum {
  67   68          CFGA_SATA_TERMINATE = 0,
  68   69          CFGA_SATA_CONTINUE
  69   70  } sata_cfga_recur_t;
  70   71  
  71   72  /* for walking links */
↓ open down ↓ 152 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX