b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH next] batman-adv: fix local translation output
@ 2013-01-24 10:38 Antonio Quartulli
  2013-01-24 10:41 ` [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix local translation table output Antonio Quartulli
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2013-01-24 10:38 UTC (permalink / raw)
  To: b.a.t.m.a.n

The last-seen field has to be print for all the entries but the one marked as
no-purge.

Introduced by 15727323d9f8864b2d41930940acc38de987045a
("batman-adv: don't print the last_seen time for bat0 TT local entry")

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
 translation-table.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/translation-table.c b/translation-table.c
index fb15b4c..d44672f 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -517,8 +517,8 @@ int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset)
 				    BATADV_TT_CLIENT_PENDING ? 'X' : '.'),
 				   (tt_common_entry->flags &
 				    BATADV_TT_CLIENT_WIFI ? 'W' : '.'),
-				   no_purge ? last_seen_secs : 0,
-				   no_purge ? last_seen_msecs : 0);
+				   no_purge ? 0 : last_seen_secs,
+				   no_purge ? 0 : last_seen_msecs);
 		}
 		rcu_read_unlock();
 	}
-- 
1.8.1.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix local translation table output
  2013-01-24 10:38 [B.A.T.M.A.N.] [PATCH next] batman-adv: fix local translation output Antonio Quartulli
@ 2013-01-24 10:41 ` Antonio Quartulli
  2013-01-28 17:23   ` Marek Lindner
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2013-01-24 10:41 UTC (permalink / raw)
  To: b.a.t.m.a.n

The last-seen field has to be printed for all the local
entries but the one marked with the no-purge flag

Introduced by 15727323d9f8864b2d41930940acc38de987045a
("batman-adv: don't print the last_seen time for bat0 TT local entry")

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---

v2:
- commit message "fixed"

 translation-table.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/translation-table.c b/translation-table.c
index fb15b4c..d44672f 100644
--- a/translation-table.c
+++ b/translation-table.c
@@ -517,8 +517,8 @@ int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset)
 				    BATADV_TT_CLIENT_PENDING ? 'X' : '.'),
 				   (tt_common_entry->flags &
 				    BATADV_TT_CLIENT_WIFI ? 'W' : '.'),
-				   no_purge ? last_seen_secs : 0,
-				   no_purge ? last_seen_msecs : 0);
+				   no_purge ? 0 : last_seen_secs,
+				   no_purge ? 0 : last_seen_msecs);
 		}
 		rcu_read_unlock();
 	}
-- 
1.8.1.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix local translation table output
  2013-01-24 10:41 ` [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix local translation table output Antonio Quartulli
@ 2013-01-28 17:23   ` Marek Lindner
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Lindner @ 2013-01-28 17:23 UTC (permalink / raw)
  To: b.a.t.m.a.n

On Thursday, January 24, 2013 18:41:39 Antonio Quartulli wrote:
> The last-seen field has to be printed for all the local
> entries but the one marked with the no-purge flag
> 
> Introduced by 15727323d9f8864b2d41930940acc38de987045a
> ("batman-adv: don't print the last_seen time for bat0 TT local entry")
> 
> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
> ---
> 
> v2:
> - commit message "fixed"
> 
>  translation-table.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied in revision 46360b2.

Thanks,
Marek

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-28 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-24 10:38 [B.A.T.M.A.N.] [PATCH next] batman-adv: fix local translation output Antonio Quartulli
2013-01-24 10:41 ` [B.A.T.M.A.N.] [PATCHv2 next] batman-adv: fix local translation table output Antonio Quartulli
2013-01-28 17:23   ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).