diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-05-17 17:21:39 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-18 07:46:25 +0000 |
commit | a23b615aa4b7bf1eee6ad099f41c3c8f1c85d723 (patch) | |
tree | c76acb977dd17f5f3c819b24abbe1365751b6e9d /src | |
parent | d92a0b553fd2872b4fcda25994aaa8852d254824 (diff) |
tap: remove the local vlib_log_info definition
Change-Id: Idff55a19d27fed0d57e222f38d2e16c5367911cb
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/devices/tap/tap.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/vnet/devices/tap/tap.c b/src/vnet/devices/tap/tap.c index 2341bbbd140..d3ed2af18fd 100644 --- a/src/vnet/devices/tap/tap.c +++ b/src/vnet/devices/tap/tap.c @@ -31,7 +31,6 @@ #include <linux/rtnetlink.h> #include <vlib/vlib.h> -#include <vlib/log.h> #include <vlib/unix/unix.h> #include <vnet/ethernet/ethernet.h> #include <vnet/ip/ip4_packet.h> @@ -511,21 +510,16 @@ tap_dump_ifs (tap_interface_details_t ** out_tapids) return 0; } -#define vlib_log_info(...) vlib_log(VLIB_LOG_LEVEL_INFO, __VA_ARGS__) - static clib_error_t * tap_init (vlib_main_t * vm) { tap_main_t *tm = &tap_main; - clib_error_t *error; - error = vlib_call_init_function (vm, vlib_log_init); - if (error) - return error; + clib_error_t *error = 0; tm->log_default = vlib_log_register_class ("tap", 0); - vlib_log_info (tm->log_default, "initialized"); + vlib_log_debug (tm->log_default, "initialized"); - return NULL; + return error; } VLIB_INIT_FUNCTION (tap_init); |