Completed LOG_DUMP.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4685 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -89,7 +89,14 @@ do { \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
# define LOG_DUMP(a, b) LOG_D(NAS, " Dump %d\n", b)
|
||||
# define LOG_DUMP(dATA, lEN) \
|
||||
do { \
|
||||
char buffer[3*lEN + 1]; \
|
||||
int i; \
|
||||
for (i = 0; i < lEN; i++) \
|
||||
sprintf (&buffer[3*i], "%02x ", dATA[i]); \
|
||||
LOG_D(NAS, " Dump %d: %s\n", lEN, buffer); \
|
||||
} while (0)
|
||||
|
||||
# define LOG_FUNC_IN \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user