Changeset 560 for code/branches/FICN/src/orxonox/core/SignalHandler.cc
- Timestamp:
- Dec 17, 2007, 3:20:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/SignalHandler.cc
r497 r560 14 14 */ 15 15 16 #include <assert.h> 17 16 18 #include "SignalHandler.h" 17 #include <assert.h>19 #include "Debug.h" 18 20 19 21 SignalHandler * SignalHandler::singletonRef = NULL; … … 101 103 } 102 104 103 printf( "recieved signal %s\ntry to write backtrace to file orxonox.log\n", sigName.c_str() );105 PRINTF(0)( "recieved signal %s\ntry to write backtrace to file orxonox.log\n", sigName.c_str() ); 104 106 105 107 int sigPipe[2]; … … 129 131 if ( someData != 0x12345678 ) 130 132 { 131 printf("something went wrong :(\n");133 PRINTF(0)("something went wrong :(\n"); 132 134 } 133 135 … … 278 280 if ( fwrite( bt.c_str(), 1, bt.length(), f ) != bt.length() ) 279 281 { 280 printf( ( std::string("could not write %d byte to ") + getInstance()->fileName ).c_str(), bt.length());282 PRINTF(0)( ( std::string("could not write %d byte to ") + getInstance()->fileName ).c_str(), bt.length()); 281 283 exit(EXIT_FAILURE); 282 284 }
Note: See TracChangeset
for help on using the changeset viewer.