Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: chromeos/drivers/ath6kl/os/linux/include/debug_linux.h

Issue 3579004: ath6kl: Bringing in the upstream version (Closed) Base URL: http://git.chromium.org/git/kernel.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 //------------------------------------------------------------------------------
2 * Copyright (c) 2004-2006 Atheros Communications Inc. 2 // Copyright (c) 2004-2010 Atheros Communications Inc.
3 * All rights reserved. 3 // All rights reserved.
4 *
5 *
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License version 2 as
8 // published by the Free Software Foundation;
9 // 4 //
10 // Software distributed under the License is distributed on an "AS 5 //
11 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 6 //
12 // implied. See the License for the specific language governing 7 // Permission to use, copy, modify, and/or distribute this software for any
13 // rights and limitations under the License. 8 // purpose with or without fee is hereby granted, provided that the above
9 // copyright notice and this permission notice appear in all copies.
10 //
11 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 // 18 //
15 // 19 //
16 * 20 //
17 */ 21 // Author(s): ="Atheros"
22 //------------------------------------------------------------------------------
18 23
19 #ifndef _DEBUG_LINUX_H_ 24 #ifndef _DEBUG_LINUX_H_
20 #define _DEBUG_LINUX_H_ 25 #define _DEBUG_LINUX_H_
21 26
22 /* macro to remove parens */ 27 /* macro to remove parens */
23 #define ATH_PRINTX_ARG(arg...) arg 28 #define ATH_PRINTX_ARG(arg...) arg
24 29
25 #ifdef DEBUG 30 #ifdef DEBUG
26 /* NOTE: the AR_DEBUG_PRINTF macro is defined here to handle special handlin g of variable arg macros 31 /* NOTE: the AR_DEBUG_PRINTF macro is defined here to handle special handlin g of variable arg macros
27 * which may be compiler dependent. */ 32 * which may be compiler dependent. */
28 #define AR_DEBUG_PRINTF(mask, args) do { \ 33 #define AR_DEBUG_PRINTF(mask, args) do { \
29 if (GET_ATH_MODULE_DEBUG_VAR_MASK(ATH_MODULE_NAME) & (mask)) { \ 34 if (GET_ATH_MODULE_DEBUG_VAR_MASK(ATH_MODULE_NAME) & (mask)) { \
30 A_LOGGER(mask, ATH_MODULE_NAME, ATH_PRINTX_ARG args); \ 35 A_LOGGER(mask, ATH_MODULE_NAME, ATH_PRINTX_ARG args); \
31 } \ 36 } \
32 } while (0) 37 } while (0)
33 #else 38 #else
34 /* on non-debug builds, keep in error and warning messages in the driver, al l other 39 /* on non-debug builds, keep in error and warning messages in the driver, al l other
35 * message tracing will get compiled out */ 40 * message tracing will get compiled out */
36 #define AR_DEBUG_PRINTF(mask, args) \ 41 #define AR_DEBUG_PRINTF(mask, args) \
37 if ((mask) & (ATH_DEBUG_ERR | ATH_DEBUG_WARN)) { A_PRINTF(ATH_PRINTX_ARG arg s); } 42 if ((mask) & (ATH_DEBUG_ERR | ATH_DEBUG_WARN)) { A_PRINTF(ATH_PRINTX_ARG arg s); }
38 43
39 #endif 44 #endif
40 45
41 /* compile specific macro to get the function name string */ 46 /* compile specific macro to get the function name string */
42 #define _A_FUNCNAME_ __func__ 47 #define _A_FUNCNAME_ __func__
43 48
44 49
45 #endif /* _DEBUG_LINUX_H_ */ 50 #endif /* _DEBUG_LINUX_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698