]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_debug.h
Unified header for FNA
[frescor/fna.git] / src_frescan / frescan_debug.h
index d0f34d79bf9d1fb463f801bdd9d2771ce2776ff2..65e22b53c215801268e4c7e11d05f785e7c2df84 100644 (file)
  *
  * @license
  *
- * See MaRTE OS license
+//----------------------------------------------------------------------
+//  Copyright (C) 2006 - 2009 by the FRESCOR consortium:
+//
+//    Universidad de Cantabria,              SPAIN
+//    University of York,                    UK
+//    Scuola Superiore Sant'Anna,            ITALY
+//    Kaiserslautern University,             GERMANY
+//    Univ. Politecnica  Valencia,           SPAIN
+//    Czech Technical University in Prague,  CZECH REPUBLIC
+//    ENEA                                   SWEDEN
+//    Thales Communication S.A.              FRANCE
+//    Visual Tools S.A.                      SPAIN
+//    Rapita Systems Ltd                     UK
+//    Evidence                               ITALY
+//
+//    See http://www.frescor.org
+//
+//        The FRESCOR project (FP6/2005/IST/5-034026) is funded
+//        in part by the European Union Sixth Framework Programme
+//        The European Union is not liable of any use that may be
+//        made of this code.
+//
+//
+//  based on previous work (FSF) done in the FIRST project
+//
+//   Copyright (C) 2005  Mälardalen University, SWEDEN
+//                       Scuola Superiore S.Anna, ITALY
+//                       Universidad de Cantabria, SPAIN
+//                       University of York, UK
+//
+// This file is part of FNA (Frescor Network Adaptation)
+//
+// FNA is free software; you can redistribute it and/or modify it
+// under terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option) any
+// later version.  FNA is distributed in the hope that it will be
+// useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details. You should have received a
+// copy of the GNU General Public License along with FNA; see file
+// COPYING. If not, write to the Free Software Foundation, 675 Mass Ave,
+// Cambridge, MA 02139, USA.
+//
+// As a special exception, including FNA header files in a file,
+// instantiating FNA generics or templates, or linking other files
+// with FNA objects to produce an executable application, does not
+// by itself cause the resulting executable application to be covered
+// by the GNU General Public License. This exception does not
+// however invalidate any other reasons why the executable file might be
+// covered by the GNU Public License.
+// -----------------------------------------------------------------------
  *
  */
 
  * DEBUG macros
  **/
 
-#define DEBUG(enable,x,args...) if(enable) printc("DEBUG (%s): " x, __func__ , ##args)
-#define ERROR(x,args...) {printe("ERROR (%s:%u): " x, __func__ , __LINE__ , ##args); exit(-1);}
-#define WARNING(x,args...) printe("WARNING (%s): " x, __func__ , ##args)
+#define DEBUG(enable,x,args...) \
+        if(enable) printc("DEBUG (%s): " x, __func__ , ##args)
+
+#define FRESCAN_ERROR(x,args...) \
+        printe("ERROR (%s:%u): " x, __func__ , __LINE__ , ##args)
+
+#define FRESCAN_WARNING(x,args...) \
+        printe("WARNING (%s): " x, __func__ , ##args)
 
 /**
  * DEBUGGING FLAGS to enable/disable debugging messages
  **/
 
-#define FRESCAN_SERVERS_ENABLE_DEBUG false
+#define FRESCAN_SERVERS_ENABLE_DEBUG    false
 #define FRESCAN_PACKETPOOL_ENABLE_DEBUG false
-#define FRESCAN_FRAG_ENABLE_DEBUG false
-#define FRESCAN_INIT_ENABLE_DEBUG false
-#define FRESCAN_SEND_ENABLE_DEBUG false
-#define FRESCAN_RECV_ENABLE_DEBUG false
-#define FRESCAN_RX_HOOK_ENABLE_DEBUG false
-#define FRESCAN_SENT_HOOK_ENABLE_DEBUG false
-#define FRESCAN_QUEUES_ENABLE_DEBUG false
-#define FRESCAN_HW_BUFFER_ENABLE_DEBUG false
-#define FRESCAN_REPL_ENABLE_DEBUG false
-#define FRESCAN_REPLYOBJ_ENABLE_DEBUG false
-#define FRESCAN_NEG_THREAD_ENABLE_DEBUG false
-#define FRESCAN_BWRES_ENABLE_DEBUG false
-#define FRESCAN_REQUESTS_ENABLE_DEBUG false
-#define FRESCAN_ACCEPTOR_THREAD_ENABLE_DEBUG false
-#define FRESCAN_NEG_MESSAGES_ENABLE_DEBUG false
-#define FRESCAN_FNA_ENABLE_DEBUG false
+#define FRESCAN_FRAG_ENABLE_DEBUG       false
+#define FRESCAN_INIT_ENABLE_DEBUG       false
+#define FRESCAN_SEND_ENABLE_DEBUG       false
+#define FRESCAN_RECV_ENABLE_DEBUG       false
+#define FRESCAN_RX_HOOK_ENABLE_DEBUG    false
+#define FRESCAN_SENT_HOOK_ENABLE_DEBUG  false
+#define FRESCAN_QUEUES_ENABLE_DEBUG     false
+#define FRESCAN_HW_BUFFER_ENABLE_DEBUG  false
+#define FRESCAN_REPLENSH_ENABLE_DEBUG   false
+
+#define FRESCAN_BWRES_ENABLE_DEBUG            false
+#define FRESCAN_BWRES_ROBJS_ENABLE_DEBUG      false
+#define FRESCAN_BWRES_REQUESTS_ENABLE_DEBUG   false
+#define FRESCAN_BWRES_MANAGER_ENABLE_DEBUG    false
+#define FRESCAN_BWRES_ACCEPTOR_ENABLE_DEBUG   false
+#define FRESCAN_BWRES_MC_ENABLE_DEBUG         false
+#define FRESCAN_BWRES_FNA_ENABLE_DEBUG        false
+#define FRESCAN_BWRES_MESSAGES_ENABLE_DEBUG   false
+#define FRESCAN_BWRES_SA_ENABLE_DEBUG         false
+
+/**
+ * MEASUREMENT FLAGS
+ */
+#define FRESCAN_MEASURE_REPL_TH         false
+#define FRESCAN_MEASURE_REPL_PROGRAM    false
 
 #endif // _MARTE_FRESCAN_DEBUG_H_