Give interface name when warning about multicast

Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
Erik Boasson 2020-01-15 12:42:48 +01:00 committed by eboasson
parent 46e0c6dc94
commit 1ed7a65b4f

View file

@ -957,7 +957,7 @@ int rtps_init (struct q_globals *gv)
{ {
if (!gv->interfaces[gv->selected_interface].mc_capable) if (!gv->interfaces[gv->selected_interface].mc_capable)
{ {
GVWARNING ("selected interface is not multicast-capable: disabling multicast\n"); GVWARNING ("selected interface \"%s\" is not multicast-capable: disabling multicast\n", gv->interfaces[gv->selected_interface].name);
gv->config.allowMulticast = AMC_FALSE; gv->config.allowMulticast = AMC_FALSE;
/* ensure discovery can work: firstly, that the process will be reachable on a "well-known" port /* ensure discovery can work: firstly, that the process will be reachable on a "well-known" port
number, and secondly, that the local interface's IP address gets added to the discovery number, and secondly, that the local interface's IP address gets added to the discovery