diff options
author | mbrudka <mbrudka@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-05-15 17:58:16 +0000 |
---|---|---|
committer | mbrudka <mbrudka@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-05-15 17:58:16 +0000 |
commit | 33f501545a06ccbd686661371023c0ffff1a18c2 (patch) | |
tree | a6341530676171491723e929c06a6eda88a640f4 | |
parent | 07b19ae3c3adf3dcd1d69b42397c85ebbac2a201 (diff) | |
download | ATCD-33f501545a06ccbd686661371023c0ffff1a18c2.tar.gz |
ChangeLogTag: Sat May 15 19:48:00 2004 Marek Brudka <mbrudka@elka.pw.edu.pl>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ace/SOCK_Dgram_Bcast.cpp | 20 |
2 files changed, 17 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog index f3250e7b47e..ab81f2d77f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat May 15 19:48:00 2004 Marek Brudka <mbrudka@elka.pw.edu.pl> + + * ace/SOCK_Dgram_Bcast.cpp (mk_broadcast): + ACE_ERROR message modified to print the problematic interface. + Sat May 15 19:17:00 2004 Marek Brudka <mbrudka@elka.pw.edu.pl> * ace/SOCK_Dgram_Bcast.cpp (mk_broadcast): diff --git a/ace/SOCK_Dgram_Bcast.cpp b/ace/SOCK_Dgram_Bcast.cpp index acce00f61d8..2b03bed033c 100644 --- a/ace/SOCK_Dgram_Bcast.cpp +++ b/ace/SOCK_Dgram_Bcast.cpp @@ -221,16 +221,18 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name) SIOCGIFFLAGS, (char *) &flags) == -1) { - ACE_ERROR ((LM_ERROR, "%p\n", - "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get interface flags)")); + ACE_ERROR ((LM_ERROR, "%p [%s]\n", + "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get interface flags)", + flags.ifr_name)); continue; } if (ACE_BIT_ENABLED (flags.ifr_flags, IFF_UP) == 0) { - ACE_ERROR ((LM_ERROR, "%p\n", - "ACE_SOCK_Dgram_Bcast::mk_broadcast: Network interface is not up")); + ACE_ERROR ((LM_ERROR, "%p [%s]\n", + "ACE_SOCK_Dgram_Bcast::mk_broadcast: Network interface is not up", + flags.ifr_name)); continue; } @@ -244,8 +246,9 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name) if (ACE_OS::ioctl (s, SIOCGIFBRDADDR, (char *) &if_req) == -1) - ACE_ERROR ((LM_ERROR, "%p\n", - "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get broadaddr)")); + ACE_ERROR ((LM_ERROR, "%p [%s]\n", + "ACE_SOCK_Dgram_Bcast::mk_broadcast: ioctl (get broadaddr)", + flags.ifr_name)); else { ACE_INET_Addr addr (ACE_reinterpret_cast (sockaddr_in *, @@ -258,8 +261,9 @@ ACE_SOCK_Dgram_Bcast::mk_broadcast (const ACE_TCHAR *host_name) } } else - ACE_ERROR ((LM_ERROR, "%p\n", - "ACE_SOCK_Dgram_Bcast::mk_broadcast: Broadcast is not enable for this interface.")); + ACE_ERROR ((LM_ERROR, "%p [%s]\n", + "ACE_SOCK_Dgram_Bcast::mk_broadcast: Broadcast is not enable for this interface.", + flags.ifr_name)); } #else ACE_UNUSED_ARG (host_name); |