aboutsummaryrefslogtreecommitdiffstats
path: root/gr-network
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-06-12 23:38:54 +0200
committerMarcus Müller <marcus@hostalia.de>2021-06-17 00:08:24 +0200
commit6f69e24fd6d4cf55b7cac542b4dbdab8f406c7d2 (patch)
tree3f784eb943d521ba7f36b4066f913f154796e9ba /gr-network
parentnetwork: use logging in socket_pdu instead of cout (diff)
downloadgnuradio-6f69e24fd6d4cf55b7cac542b4dbdab8f406c7d2.tar.xz
gnuradio-6f69e24fd6d4cf55b7cac542b4dbdab8f406c7d2.zip
network: use logging in tuntap_pdu instead of cout
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-network')
-rw-r--r--gr-network/lib/tuntap_pdu_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gr-network/lib/tuntap_pdu_impl.cc b/gr-network/lib/tuntap_pdu_impl.cc
index 87c3750fd..a1f5a0117 100644
--- a/gr-network/lib/tuntap_pdu_impl.cc
+++ b/gr-network/lib/tuntap_pdu_impl.cc
@@ -74,13 +74,13 @@ tuntap_pdu_impl::tuntap_pdu_impl(std::string dev, int MTU, bool istunflag)
}
- std::cout << boost::format("Allocated virtual ethernet interface: %s\n"
+ GR_LOG_WARN(d_logger,
+ (boost::format("Allocated virtual ethernet interface: %s\n"
"You must now use ifconfig to set its IP address. E.g.,\n"
" $ sudo ifconfig %s 192.168.200.1\n"
"Be sure to use a different address in the same subnet "
"for each machine.\n") %
- dev % dev
- << std::endl;
+ dev % dev));
// set up output message port
message_port_register_out(msgport_names::pdus());