Print this page
10686 Debug macros causes smatch issues

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ib/ibtl/impl/ibtl_util.h
          +++ new/usr/src/uts/common/sys/ib/ibtl/impl/ibtl_util.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
       27 +/*
       28 + * Copyright 2019, Joyent, Inc.
       29 + */
       30 +
  27   31  #ifndef _SYS_IB_IBTL_IMPL_IBTL_UTIL_H
  28   32  #define _SYS_IB_IBTL_IMPL_IBTL_UTIL_H
  29   33  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   34  /*
  33   35   * ibtl_util.h
  34   36   *
  35   37   * All data structures and function prototypes that serve as helper
  36   38   * routines for IBTF implementation.
  37   39   */
  38   40  
  39   41  #ifdef __cplusplus
  40   42  extern "C" {
  41   43  #endif
↓ open down ↓ 82 lines elided ↑ open up ↑
 124  126  void ibtl_dprintf5(
 125  127                  char            *name,
 126  128                  char            *fmt, ...);
 127  129  void ibtl_dprintf4(
 128  130                  char            *name,
 129  131                  char            *fmt, ...);
 130  132  void ibtl_dprintf3(
 131  133                  char            *name,
 132  134                  char            *fmt, ...);
 133  135  #else
 134      -#define IBTF_DPRINTF_LINTR      0 &&
 135      -#define IBTF_DPRINTF_L5         0 &&
 136      -#define IBTF_DPRINTF_L4         0 &&
 137      -#define IBTF_DPRINTF_L3         0 &&
      136 +#define IBTF_DPRINTF_LINTR(...)
      137 +#define IBTF_DPRINTF_L5(...)
      138 +#define IBTF_DPRINTF_L4(...)
      139 +#define IBTF_DPRINTF_L3(...)
 138  140  #endif
 139  141  
 140  142  #define IBTF_DPRINTF_L2 ibtl_dprintf2
 141  143  #define IBTF_DPRINTF_L1 ibtl_dprintf1
 142  144  #define IBTF_DPRINTF_L0 ibtl_dprintf0
 143  145  
 144  146  void ibtl_dprintf2(
 145  147                  char            *name,
 146  148                  char            *fmt, ...);
 147  149  void ibtl_dprintf1(
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX