Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1678


Ignore:
Timestamp:
Aug 29, 2008, 12:03:54 AM (16 years ago)
Author:
landauf
Message:

removed an older compiler error caused by removing the PRINTF macro from Debug.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/orxonox/SignalHandler.cc

    r1607 r1678  
    3434#include "OrxonoxStableHeaders.h"
    3535#include "SignalHandler.h"
     36#include "util/Debug.h"
    3637
    3738#include <assert.h>
     
    157158  }
    158159
    159   PRINTF(0)( "recieved signal %s\ntry to write backtrace to file orxonox.log\n", sigName.c_str() );
     160  COUT(0) << "recieved signal " << sigName.c_str() << std::endl << "try to write backtrace to file orxonox.log" << std::endl;
    160161
    161162  int sigPipe[2];
     
    185186    if ( someData != 0x12345678 )
    186187    {
    187       PRINTF(0)("something went wrong :(\n");
     188      COUT(0) << "something went wrong :(" << std::endl;
    188189    }
    189190
     
    334335  if ( fwrite( bt.c_str(), 1, bt.length(), f ) != bt.length() )
    335336  {
    336     PRINTF(0)( ( std::string("could not write %d byte to ") + getInstance()->fileName ).c_str(), bt.length());
     337    COUT(0) << "could not write " << bt.length() << " byte to " << getInstance()->fileName << std::endl;
    337338    exit(EXIT_FAILURE);
    338339  }
Note: See TracChangeset for help on using the changeset viewer.