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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/uath/uath.c
          +++ new/usr/src/uts/common/io/uath/uath.c
   1    1  /*
   2    2   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
   3    3   * Use is subject to license terms.
   4    4   */
   5    5  
   6    6  /*
        7 + * Copyright 2019 Joyent, Inc.
        8 + */
        9 +
       10 +/*
   7   11   * Copyright (c) 2006 Sam Leffler, Errno Consulting
   8   12   * Copyright (c) 2008-2009 Weongyo Jeong <weongyo@freebsd.org>
   9   13   * All rights reserved.
  10   14   *
  11   15   * Redistribution and use in source and binary forms, with or without
  12   16   * modification, are permitted provided that the following conditions
  13   17   * are met:
  14   18   * 1. Redistributions of source code must retain the above copyright
  15   19   *    notice, this list of conditions and the following disclaimer,
  16   20   *    without modification.
↓ open down ↓ 70 lines elided ↑ open up ↑
  87   91  #define UATH_DBG_TX_CMD         0x000040
  88   92  #define UATH_DBG_RX_CMD         0x000080
  89   93  #define UATH_DBG_ALL            0x000fff
  90   94  
  91   95  uint32_t uath_dbg_flags = 0;
  92   96  
  93   97  #ifdef DEBUG
  94   98  #define UATH_DEBUG \
  95   99          uath_debug
  96  100  #else
  97      -#define UATH_DEBUG
      101 +#define UATH_DEBUG(...) (void)(0)
  98  102  #endif
  99  103  
 100  104  /*
 101  105   * Various supported device vendors/products.
 102  106   * UB51: AR5005UG 802.11b/g, UB52: AR5005UX 802.11b/g
 103  107   */
 104  108  #define UATH_FLAG_PRE_FIRMWARE  (1 << 0)
 105  109  #define UATH_FLAG_ABG           (1 << 1)
 106  110  #define UATH_FLAG_ERR           (1 << 2)
 107  111  #define UATH_DEV(v, p, f)                                               \
↓ open down ↓ 3277 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX