/* * Copyright (c) 2007, 2008, 2009, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #ifndef LWIP_BARRELFISH_DEBUG_H_ #define LWIP_BARRELFISH_DEBUG_H_ /***************************************************************** * Debug printer: *****************************************************************/ //#define LWIP_BARRELFISH_DEBUG 1 #if defined(LWIP_BARRELFISH_DEBUG) || defined(GLOBAL_DEBUG) #define LWIPBF_DEBUG(x...) do { printf("lwipBF:%s.%d:%s:%d: ", \ disp_name(), disp_get_core_id(), __func__, __LINE__); \ printf(x);\ } while (0) #else #define LWIPBF_DEBUG(x...) ((void)0) #endif // defined(LWIP_BARRELFISH_DEBUG) || defined(GLOBAL_DEBUG) #endif // LWIP_BARRELFISH_DEBUG_H