From 1fd1ea253470ea63e9174466daa5de73c4ea7576 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Fri, 12 Feb 2021 17:55:38 +0100 Subject: rdma: rdma_log__ argument dev is a pointer Also apply style edits as proprosed by checkstyle. Ticket: VPP-1971 Type: fix Change-Id: I4332a4e32220f3076b4a373da01cc0022cde32f5 Signed-off-by: Vratko Polak --- src/plugins/rdma/device.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/plugins/rdma') diff --git a/src/plugins/rdma/device.c b/src/plugins/rdma/device.c index c949c1d77e7..63c521f2992 100644 --- a/src/plugins/rdma/device.c +++ b/src/plugins/rdma/device.c @@ -46,11 +46,14 @@ static u8 rdma_rss_hash_key[] = { rdma_main_t rdma_main; -#define rdma_log__(lvl, dev, f, ...) \ - do { \ - vlib_log((lvl), rdma_main.log_class, "%s: " f, \ - &(dev)->name, ##__VA_ARGS__); \ - } while (0) +/* (dev) is of type (rdma_device_t *) */ +#define rdma_log__(lvl, dev, f, ...) \ + do \ + { \ + vlib_log ((lvl), rdma_main.log_class, "%s: " f, (dev)->name, \ + ##__VA_ARGS__); \ + } \ + while (0) #define rdma_log(lvl, dev, f, ...) \ rdma_log__((lvl), (dev), "%s (%d): " f, strerror(errno), errno, ##__VA_ARGS__) -- cgit 1.2.3-korg