Print this page
10886 smatch debug macro cleanup in usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fibre-channel/impl/fp.h
          +++ new/usr/src/uts/common/sys/fibre-channel/impl/fp.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 2008 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 _FP_H
  27   31  #define _FP_H
  28   32  
  29   33  
  30   34  #include <sys/note.h>
  31   35  
  32   36  #ifdef  __cplusplus
  33   37  extern "C" {
  34   38  #endif
  35   39  
↓ open down ↓ 83 lines elided ↑ open up ↑
 119  123  #define FP_MSG_BUF_CONSOLE_LEVEL_8      (FP_LEVEL_8 | FC_TRACE_LOG_BUF |\
 120  124                                          FC_TRACE_LOG_MSG | FC_TRACE_LOG_CONSOLE)
 121  125  #define FP_MSG_BUF_CONSOLE_LEVEL_9      (FP_LEVEL_9 | FC_TRACE_LOG_BUF |\
 122  126                                          FC_TRACE_LOG_MSG | FC_TRACE_LOG_CONSOLE)
 123  127  #ifdef DEBUG
 124  128  
 125  129  #define FP_DTRACE               fc_trace_debug
 126  130  
 127  131  #else
 128  132  
 129      -#define FP_DTRACE
      133 +#define FP_DTRACE(...)          (void)(0)
 130  134  
 131  135  #endif
 132  136  
 133  137  #define FP_TRACE                fc_trace_debug
 134  138  
 135  139  
 136  140  #ifdef  DEBUG
 137  141  
 138  142  #define FP_TRACE_DEFAULT        (FC_TRACE_LOG_MASK | FP_LEVEL_1 |\
 139  143                                  FP_LEVEL_2 | FP_LEVEL_3 |\
↓ open down ↓ 326 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX