batman-adv: fix local translation table output
authorAntonio Quartulli <ordex@autistici.org>
Thu, 24 Jan 2013 10:41:39 +0000 (11:41 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 28 Jan 2013 19:46:03 +0000 (20:46 +0100)
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>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/translation-table.c

index fb15b4c076f77e901cc56a59ad31d50a42caa5b5..d44672f4a349f9a4f585fc1b1cd46c7e4bedecab 100644 (file)
@@ -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();
        }