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>
This commit is contained in:

committed by
Beno�t Ganne

parent
6dab1aea92
commit
1fd1ea2534
@@ -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__)
|
||||
|
Reference in New Issue
Block a user