diff --git a/openair-cn/NAS/EURECOM-NAS/src/util/nas_log.h b/openair-cn/NAS/EURECOM-NAS/src/util/nas_log.h index 218b39d8d972bdbfaa71aa39a14fddcbb7822923..07b67ea096df50de8f3c53ccdf7e85cd9c12d8ef 100644 --- a/openair-cn/NAS/EURECOM-NAS/src/util/nas_log.h +++ b/openair-cn/NAS/EURECOM-NAS/src/util/nas_log.h @@ -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 { \