memif: Use log_debug for clib_file_add and clib_file_del
It is more appropriate to use log_debug instead of log_warn when inoking
clib_file_add and clib_file_del.
Type: fix
##__VA_ARGS__); \
} while (0)
-#define memif_file_add(a, b) do { \
+#define memif_file_add(a, b) \
+ do \
+ { \
*a = clib_file_add (&file_main, b); \
- memif_log_warn (0, "clib_file_add fd %d private_data %u idx %u", \
+ memif_log_debug (0, "clib_file_add fd %d private_data %u idx %u", \
(b)->file_descriptor, (b)->private_data, *a); \
-} while (0)
+ } \
+ while (0)
-#define memif_file_del(a) do { \
- memif_log_warn (0, "clib_file_del idx %u", a - file_main.file_pool); \
+#define memif_file_del(a) \
+ do \
+ { \
+ memif_log_debug (0, "clib_file_del idx %u", a - file_main.file_pool); \
clib_file_del (&file_main, a); \
-} while (0)
+ } \
+ while (0)
-#define memif_file_del_by_index(a) do { \
- memif_log_warn (0, "clib_file_del idx %u", a); \
+#define memif_file_del_by_index(a) \
+ do \
+ { \
+ memif_log_debug (0, "clib_file_del idx %u", a); \
clib_file_del_by_index (&file_main, a); \
-} while (0)
+ } \
+ while (0)
typedef struct
{
