1/* 2 * \file 3 * \brief Solarflare sfn5122f debug function 4 * 5 * 6 */ 7 8/* 9 * Copyright (c) 2007, 2008, 2009, ETH Zurich. 10 * All rights reserved. 11 * 12 * This file is distributed under the terms in the attached LICENSE file. 13 * If you do not find this file, copies can be found by writing to: 14 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. 15 */ 16 17#ifndef SFN5122F_DEBUG_H_ 18#define SFN5122F_DEBUG_H_ 19 20//#define DEBUG_SFN 21//#define DEBUG_BUFTBL 22 23#ifdef DEBUG_SFN 24 #define DEBUG_QUEUE(x...) printf("sfn5122f_q : " x) 25#else 26 #define DEBUG_QUEUE(x...) do {} while (0) 27#endif 28 29#ifdef DEBUG_SFN 30 #define DEBUG(x...) printf("sfn5122f: " x) 31#else 32 #define DEBUG(x...) do {} while (0) 33#endif 34 35 36#ifdef DEBUG_BUFTBL 37 #define DEBUG_BUF(x...) printf("buftbl: " x) 38#else 39 #define DEBUG_BUF(x...) do {} while (0) 40#endif 41 42#endif /* SFN5122F_DEBUG_H_ */ 43