diff options
Diffstat (limited to 'src/plugins/memif/private.h')
-rw-r--r-- | src/plugins/memif/private.h | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/src/plugins/memif/private.h b/src/plugins/memif/private.h index 22b2ab8a6d2..c9d6a79da5c 100644 --- a/src/plugins/memif/private.h +++ b/src/plugins/memif/private.h @@ -63,21 +63,30 @@ ##__VA_ARGS__); \ } while (0) -#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", \ - (b)->file_descriptor, (b)->private_data, *a); \ -} while (0) - -#define memif_file_del(a) do { \ - memif_log_warn (0, "clib_file_del idx %u", a - file_main.file_pool); \ - clib_file_del (&file_main, a); \ -} while (0) - -#define memif_file_del_by_index(a) do { \ - memif_log_warn (0, "clib_file_del idx %u", a); \ - clib_file_del_by_index (&file_main, a); \ -} while (0) +#define memif_file_add(a, b) \ + do \ + { \ + *a = clib_file_add (&file_main, b); \ + memif_log_debug (0, "clib_file_add fd %d private_data %u idx %u", \ + (b)->file_descriptor, (b)->private_data, *a); \ + } \ + while (0) + +#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) + +#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) typedef struct { |