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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/rtw/rtwvar.h
          +++ new/usr/src/uts/common/io/rtw/rtwvar.h
   1    1  /*
   2    2   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3    3   * Use is subject to license terms.
        4 + *
        5 + * Copyright 2019 Joyent, Inc.
   4    6   */
   5    7  /*
   6    8   * Copyright (c) 2004, 2005 David Young.  All rights reserved.
   7    9   *
   8   10   * Driver for the Realtek RTL8180 802.11 MAC/BBP by David Young.
   9   11   *
  10   12   * Redistribution and use in source and binary forms, with or without
  11   13   * modification, are permitted provided that the following conditions
  12   14   * are met:
  13   15   * 1. Redistributions of source code must retain the above copyright
↓ open down ↓ 57 lines elided ↑ open up ↑
  71   73  #define RTW_DEBUG_BUGS          0x100000
  72   74  #define RTW_DEBUG_BEACON        0x200000
  73   75  #define RTW_DEBUG_WIFICFG       0x400000
  74   76  #define RTW_DEBUG_80211         0x800000
  75   77  #define RTW_DEBUG_MAX           0xffffff
  76   78  
  77   79  #ifdef DEBUG
  78   80  #define RTW_DPRINTF \
  79   81          rtw_dbg
  80   82  #else /* DEBUG */
  81      -#define RTW_DPRINTF
       83 +#define RTW_DPRINTF(...) (void)(0)
  82   84  #endif /* DEBUG */
  83   85  
  84   86  enum rtw_locale {
  85   87          RTW_LOCALE_USA = 0,
  86   88          RTW_LOCALE_EUROPE,
  87   89          RTW_LOCALE_JAPAN,
  88   90          RTW_LOCALE_UNKNOWN
  89   91  };
  90   92  
  91   93  enum rtw_rfchipid {
↓ open down ↓ 415 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX