Commit ec7ac822 authored by winckel's avatar winckel

Completed LOG_DUMP.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4685 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent f3f98660
......@@ -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 { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment