Print this page
10686 Debug macros causes smatch issues

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ib/clients/rdsv3/rdsv3_debug.h
          +++ new/usr/src/uts/common/sys/ib/clients/rdsv3/rdsv3_debug.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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   * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   */
  24   24  
       25 +/*
       26 + * Copyright 2019, Joyent, Inc.
       27 + */
       28 +
  25   29  #ifndef _RDSV3_DEBUG_H
  26   30  #define _RDSV3_DEBUG_H
  27   31  
  28   32  #ifdef __cplusplus
  29   33  extern "C" {
  30   34  #endif
  31   35  
  32   36  #define         LABEL   "RDSV3"
  33   37  
  34   38  /*
↓ open down ↓ 54 lines elided ↑ open up ↑
  89   93  void rdsv3_dprintf5(
  90   94                  char            *name,
  91   95                  char            *fmt, ...);
  92   96  void rdsv3_dprintf4(
  93   97                  char            *name,
  94   98                  char            *fmt, ...);
  95   99  void rdsv3_dprintf3(
  96  100                  char            *name,
  97  101                  char            *fmt, ...);
  98  102  #else
  99      -#define RDSV3_DPRINTF_INTR      0 &&
 100      -#define RDSV3_DPRINTF5          0 &&
 101      -#define RDSV3_DPRINTF4          0 &&
 102      -#define RDSV3_DPRINTF3          0 &&
      103 +#define RDSV3_DPRINTF_INTR(...)
      104 +#define RDSV3_DPRINTF5(...)
      105 +#define RDSV3_DPRINTF4(...)
      106 +#define RDSV3_DPRINTF3(...)
 103  107  #endif
 104  108  
 105  109  #define RDSV3_DPRINTF2          rdsv3_dprintf2
 106  110  #define RDSV3_DPRINTF1          rdsv3_dprintf1
 107  111  #define RDSV3_DPRINTF0          rdsv3_dprintf0
 108  112  
 109  113  void rdsv3_dprintf2(
 110  114                  char            *name,
 111  115                  char            *fmt, ...);
 112  116  void rdsv3_dprintf1(
↓ open down ↓ 27 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX