Print this page
10686 Debug macros causes smatch issues

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ib/clients/rds/rdsib_debug.h
          +++ new/usr/src/uts/common/sys/ib/clients/rds/rdsib_debug.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
       26 +/*
       27 + * Copyright 2019, Joyent, Inc.
       28 + */
       29 +
  26   30  #ifndef _RDSIB_DEBUG_H
  27   31  #define _RDSIB_DEBUG_H
  28   32  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   33  #ifdef __cplusplus
  32   34  extern "C" {
  33   35  #endif
  34   36  
  35   37  #define         LABEL   "RDS"
  36   38  
  37   39  /*
  38   40   * warnings, console & syslog buffer.
  39   41   * For Non recoverable or Major Errors
  40   42   */
↓ open down ↓ 51 lines elided ↑ open up ↑
  92   94  void rds_dprintf5(
  93   95                  char            *name,
  94   96                  char            *fmt, ...);
  95   97  void rds_dprintf4(
  96   98                  char            *name,
  97   99                  char            *fmt, ...);
  98  100  void rds_dprintf3(
  99  101                  char            *name,
 100  102                  char            *fmt, ...);
 101  103  #else
 102      -#define RDS_DPRINTF_INTR        0 &&
 103      -#define RDS_DPRINTF5            0 &&
 104      -#define RDS_DPRINTF4            0 &&
 105      -#define RDS_DPRINTF3            0 &&
      104 +#define RDS_DPRINTF_INTR(...)
      105 +#define RDS_DPRINTF5(...)
      106 +#define RDS_DPRINTF4(...)
      107 +#define RDS_DPRINTF3(...)
 106  108  #endif
 107  109  
 108  110  #define RDS_DPRINTF2    rds_dprintf2
 109  111  #define RDS_DPRINTF1    rds_dprintf1
 110  112  #define RDS_DPRINTF0    rds_dprintf0
 111  113  
 112  114  void rds_dprintf2(
 113  115                  char            *name,
 114  116                  char            *fmt, ...);
 115  117  void rds_dprintf1(
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX