1/*
2 * Copyright (c) 2007, 2008, 2009, ETH Zurich.
3 * All rights reserved.
4 *
5 * This file is distributed under the terms in the attached LICENSE file.
6 * If you do not find this file, copies can be found by writing to:
7 * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 */
9
10
11#ifndef LWIP_BARRELFISH_DEBUG_H_
12#define LWIP_BARRELFISH_DEBUG_H_
13
14
15/*****************************************************************
16 * Debug printer:
17 *****************************************************************/
18//#define LWIP_BARRELFISH_DEBUG  1
19
20#if defined(LWIP_BARRELFISH_DEBUG) || defined(GLOBAL_DEBUG)
21
22#define LWIPBF_DEBUG(x...) do { printf("lwipBF:%s.%d:%s:%d: ", \
23            disp_name(), disp_get_core_id(), __func__, __LINE__); \
24                printf(x);\
25        } while (0)
26#else
27#define LWIPBF_DEBUG(x...) ((void)0)
28#endif // defined(LWIP_BARRELFISH_DEBUG) || defined(GLOBAL_DEBUG)
29
30#endif // LWIP_BARRELFISH_DEBUG_H
31