* [B.A.T.M.A.N.] [PATCH] batman-adv: properly print the VID in DAT
@ 2013-08-10 10:57 Antonio Quartulli
2013-08-16 10:18 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Quartulli @ 2013-08-10 10:57 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
Make the DAT code use the PRINT_VID macro to print the VIDs.
Introduced by 3e26722bc9f248ec4316749fc1957365c0fa5e4b
("batman-adv: make the Distributed ARP Table vlan aware")
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
distributed-arp-table.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/distributed-arp-table.c b/distributed-arp-table.c
index 081c1af..df65f8c 100644
--- a/distributed-arp-table.c
+++ b/distributed-arp-table.c
@@ -282,8 +282,9 @@ static void batadv_dat_entry_add(struct batadv_priv *bat_priv, __be32 ip,
memcpy(dat_entry->mac_addr, mac_addr, ETH_ALEN);
dat_entry->last_update = jiffies;
batadv_dbg(BATADV_DBG_DAT, bat_priv,
- "Entry updated: %pI4 %pM (vid: %u)\n",
- &dat_entry->ip, dat_entry->mac_addr, vid);
+ "Entry updated: %pI4 %pM (vid: %d)\n",
+ &dat_entry->ip, dat_entry->mac_addr,
+ BATADV_PRINT_VID(vid));
goto out;
}
@@ -307,8 +308,8 @@ static void batadv_dat_entry_add(struct batadv_priv *bat_priv, __be32 ip,
goto out;
}
- batadv_dbg(BATADV_DBG_DAT, bat_priv, "New entry added: %pI4 %pM (vid: %u)\n",
- &dat_entry->ip, dat_entry->mac_addr, vid);
+ batadv_dbg(BATADV_DBG_DAT, bat_priv, "New entry added: %pI4 %pM (vid: %d)\n",
+ &dat_entry->ip, dat_entry->mac_addr, BATADV_PRINT_VID(vid));
out:
if (dat_entry)
--
1.8.1.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: properly print the VID in DAT
2013-08-10 10:57 [B.A.T.M.A.N.] [PATCH] batman-adv: properly print the VID in DAT Antonio Quartulli
@ 2013-08-16 10:18 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2013-08-16 10:18 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Antonio Quartulli
On Saturday, August 10, 2013 18:57:27 Antonio Quartulli wrote:
> Make the DAT code use the PRINT_VID macro to print the VIDs.
>
> Introduced by 3e26722bc9f248ec4316749fc1957365c0fa5e4b
> ("batman-adv: make the Distributed ARP Table vlan aware")
>
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> distributed-arp-table.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
Applied in revision 2cc9694.
Thanks,
Marek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-16 10:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-10 10:57 [B.A.T.M.A.N.] [PATCH] batman-adv: properly print the VID in DAT Antonio Quartulli
2013-08-16 10:18 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox