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 /ace/SOCK_Dgram_Bcast.cpp | |
parent | 07b19ae3c3adf3dcd1d69b42397c85ebbac2a201 (diff) | |
download | ATCD-33f501545a06ccbd686661371023c0ffff1a18c2.tar.gz |
ChangeLogTag: Sat May 15 19:48:00 2004 Marek Brudka <mbrudka@elka.pw.edu.pl>
Diffstat (limited to 'ace/SOCK_Dgram_Bcast.cpp')
-rw-r--r-- | ace/SOCK_Dgram_Bcast.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
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); |