From acd61a0e8ecfa5504381361b0616baeeeaf0a594 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 31 May 2018 13:05:59 +0200 Subject: [PATCH] test/run_neighbor_explorer: dump NeighborGlue::GetList() after initialization --- test/run_neighbor_explorer.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/run_neighbor_explorer.cxx b/test/run_neighbor_explorer.cxx index 9e2d0436e..770bf1956 100644 --- a/test/run_neighbor_explorer.cxx +++ b/test/run_neighbor_explorer.cxx @@ -80,6 +80,12 @@ try { neighbor.Init(loop, listener); neighbor.Open(); + /* dump initial list */ + + for (const auto &info : neighbor.GetList()) + printf("have '%s' (%s)\n", + info.display_name.c_str(), info.uri.c_str()); + /* run */ loop.Run();