diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-02-13 13:31:02 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-02-13 13:31:02 +0000 |
commit | 8bd3b08eb5ea4d76a7f025de00b89c040c056c27 (patch) | |
tree | 8cdee4d34eea2e115fdf686776522a440c1bb410 /ACE/ace/SUN_Proactor.cpp | |
parent | 6db2901cb5fb8b7d8f303e199406f603354fa2b4 (diff) | |
download | ATCD-8bd3b08eb5ea4d76a7f025de00b89c040c056c27.tar.gz |
Fri Feb 13 13:30:28 UTC 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/Dev_Poll_Reactor.cpp
* ace/Log_Msg.cpp
* ace/MEM_Acceptor.cpp
* ace/MMAP_Memory_Pool.cpp
* ace/POSIX_Asynch_IO.cpp
* ace/POSIX_CB_Proactor.cpp
* ace/POSIX_Proactor.cpp
* ace/Registry_Name_Space.cpp
* ace/Remote_Tokens.cpp
* ace/Service_Config.cpp
* ace/Service_Gestalt.cpp
* ace/Shared_Memory_Pool.cpp
* ace/SOCK_Dgram_Bcast.cpp
* ace/SUN_Proactor.cpp
* ace/TLI.cpp
Use ACE_TEXT() with %p in ACE_DEBUG/ACE_ERROR. The log string
passed to ACE_DEBUG/ACE_ERROR is converted automatically to
unicode in an unicode build. The %p expects an unicode string,
if a plain ascii string is passed in, this is just handled as
unicode string and could lead to a crash because then we are
just reading random memory
Diffstat (limited to 'ACE/ace/SUN_Proactor.cpp')
-rw-r--r-- | ACE/ace/SUN_Proactor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ACE/ace/SUN_Proactor.cpp b/ACE/ace/SUN_Proactor.cpp index 8b280045b97..1fd7ec23b48 100644 --- a/ACE/ace/SUN_Proactor.cpp +++ b/ACE/ace/SUN_Proactor.cpp @@ -112,8 +112,8 @@ ACE_SUN_Proactor::handle_events_i (ACE_Time_Value *delta) default: // EFAULT ACE_ERROR_RETURN ((LM_ERROR, - "%N:%l:(%P | %t)::%p \nNumAIO=%d\n", - "ACE_SUN_Proactor::handle_events: aiowait failed", + ACE_TEXT("%N:%l:(%P | %t)::%p \nNumAIO=%d\n"), + ACE_TEXT("ACE_SUN_Proactor::handle_events: aiowait failed"), num_started_aio_), -1); } @@ -202,9 +202,9 @@ ACE_SUN_Proactor::find_completed_aio (aio_result_t *result, transfer_count) == 0) { // should never be ACE_ERROR ((LM_ERROR, - "%N:%l:(%P | %t)::%p\n", - "ACE_SUN_Proactor::find_completed_aio:" - "should never be !!!\n")); + ACE_TEXT("%N:%l:(%P | %t)::%p\n"), + ACE_TEXT("ACE_SUN_Proactor::find_completed_aio:") + ACE_TEXT("should never be !!!\n"))); return 0; } |