From 874e220e90f45cb18c0c22f20fac5b72e6cd0c22 Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Thu, 12 Dec 2013 12:25:18 +0000
Subject: [PATCH] git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4689
 818b1a75-f10b-46b9-bf7c-635c3b92a50f

---
 openair2/PHY_INTERFACE/defs.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/openair2/PHY_INTERFACE/defs.h b/openair2/PHY_INTERFACE/defs.h
index b7501359b76..5414422dfaf 100755
--- a/openair2/PHY_INTERFACE/defs.h
+++ b/openair2/PHY_INTERFACE/defs.h
@@ -51,8 +51,12 @@
 #define DLSCH 1
 #define ULSCH 2
 
-#define mac_exit_wrapper(sTRING)	\
-	  mac_xface->macphy_exit(sTRING " in file " __FILE__ ", line ##__LINE__")
+#define mac_exit_wrapper(sTRING)                                                            \
+do {                                                                                        \
+    char temp[300];                                                                         \
+    snprintf(temp, sizeof(temp), "%s in file "__FILE__" at line %d\n", sTRING, __LINE__);   \
+    mac_xface->macphy_exit(temp);                                                           \
+} while(0)
 
 /*! \brief MACPHY Interface */
 typedef struct
-- 
GitLab