diff options
author | Vratko Polak <vrpolak@cisco.com> | 2021-02-12 17:55:38 +0100 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2021-02-15 09:33:00 +0000 |
commit | 1fd1ea253470ea63e9174466daa5de73c4ea7576 (patch) | |
tree | 629ab6461debf57c216ed22a981039dc0bdd293a /src/plugins/rdma/device.c | |
parent | 6dab1aea921598815dfb12028c37be7358370620 (diff) |
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 <vrpolak@cisco.com>
Diffstat (limited to 'src/plugins/rdma/device.c')
-rw-r--r-- | src/plugins/rdma/device.c | 13 |
1 files changed, 8 insertions, 5 deletions
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__) |