Changeset 19940

Show
Ignore:
Timestamp:
04/10/07 10:32:14 (1 year ago)
Author:
patrick
Message:

MFT [rev 19334, 19336]: Use more consistent formatting for output messages

(especially for warnings and errors).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.0/modules/vrjuggler/vrj/Draw/Pf/PfDrawManager.cpp

    r19939 r19940  
    116116   mNumPipes = element->getProperty<unsigned int>("number_of_pipes"); 
    117117 
    118    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) << "NumPipes: " << mNumPipes 
    119                                             << std::endl << vprDEBUG_FLUSH; 
     118   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
     119      << "NumPipes: " << mNumPipes << std::endl << vprDEBUG_FLUSH; 
    120120 
    121121   // Make sure that the user has specified a valid number of pipes in the 
     
    147147         } 
    148148      } 
    149       vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) << "Pipe:" << i << ": " 
    150                                                << mPipeStrs[i] << std::endl 
    151                                                << vprDEBUG_FLUSH; 
     149 
     150      vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
     151         << "Pipe " << i << ": " << mPipeStrs[i] << std::endl 
     152         << vprDEBUG_FLUSH; 
    152153   } 
    153154   return true; 
     
    156157void PfDrawManager::sync() 
    157158{ 
    158    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_VERB_LVL) 
    159       << "vrj::PfDrawManager::sync\n" << vprDEBUG_FLUSH; 
     159   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     160      << "vrj::PfDrawManager::sync()\n" << vprDEBUG_FLUSH; 
    160161   pfSync(); 
    161162} 
     
    166167void PfDrawManager::draw() 
    167168{ 
    168    vprDEBUG(vprDBG_ALL,vprDBG_VERB_LVL) 
    169       << "[vrj::PfDrawManager::draw()] calling appChanFuncs\n" 
     169   vprDEBUG(vprDBG_ALL, vprDBG_VERB_LVL) 
     170      << "[vrj::PfDrawManager::draw()] Calling app channel functions\n" 
    170171      << vprDEBUG_FLUSH; 
    171172   callAppChanFuncs(); 
     
    173174   updatePfProjections(); 
    174175 
    175    vprDEBUG(vprDBG_ALL,vprDBG_VERB_LVL) 
    176       << "[vrj::PfDrawManager::draw] calling pfFrame()\n" << vprDEBUG_FLUSH; 
     176   vprDEBUG(vprDBG_ALL, vprDBG_VERB_LVL) 
     177      << "[vrj::PfDrawManager::draw] Calling pfFrame()\n" << vprDEBUG_FLUSH; 
    177178 
    178179   pfFrame(); 
     
    237238   mApp->preForkInit(); 
    238239 
    239    vprDEBUG_BEGIN(vrjDBG_DRAW_MGR,vprDBG_STATE_LVL) 
     240   vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL) 
    240241      << "[vrj::PfDrawManager::initAPI()] Entering." << std::endl 
    241242      << vprDEBUG_FLUSH; 
     
    255256   { 
    256257      vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL) 
    257          << "PfDrawManager::initAPI() Running Performer in single process to ensure cluster synchronization." 
     258         << "[vrj::PfDrawManager::initAPI()] Running Performer in single " 
     259         << "process to ensure cluster synchronization." 
    258260         << std::endl << vprDEBUG_FLUSH; 
    259261      // Single process mode. 
     
    296298   // debugDump(vprDBG_CONFIG_LVL); 
    297299 
    298    vprDEBUG_END(vrjDBG_DRAW_MGR,vprDBG_STATE_LVL) 
     300   vprDEBUG_END(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL) 
    299301      << "[vrj::PfDrawManager::initAPI()] Exiting." << std::endl 
    300302      << vprDEBUG_FLUSH; 
     
    320322   { 
    321323      vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    322          << clrOutNORM(clrRED, "ERROR:") 
    323          << " Invalid pipe number (" << pipe_num << ") requested.  " 
    324          << "Check display system configuration\n" << vprDEBUG_FLUSH; 
     324         << clrOutNORM(clrRED, "ERROR") 
     325         << ": Invalid pipe number (" << pipe_num << ") requested.  " 
     326         << "Check display system configuration.\n" << vprDEBUG_FLUSH; 
    325327      return NULL; 
    326328   } 
     
    341343   for(unsigned pipe_num=0; pipe_num<mNumPipes; pipe_num++) 
    342344   { 
    343       vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) 
     345      vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    344346         << "[vrj::PfDrawManager::initPipes()] Opening Pipe." << std::endl 
    345347         << vprDEBUG_FLUSH; 
    346       vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) 
    347          << "\tpipe:" << pipe_num << ": " << mPipeStrs[pipe_num] << std::endl 
     348      vprDEBUG_NEXT(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
     349         << "\tpipe " << pipe_num << ": " << mPipeStrs[pipe_num] << std::endl 
    348350         << vprDEBUG_FLUSH; 
    349351 
     
    376378   //        - Create viewport 
    377379   //        - Create channels for the viewports 
    378    vprDEBUG_OutputGuard(vrjDBG_DRAW_MGR, vprDBG_STATE_LVL, 
    379                         std::string("vrj::PfDrawManager: ---- Opening new Display --------\n")
    380                         std::string("vrj::PfDrawManager: ---- Display Open (done) --------\n")); 
    381  
    382  
     380   vprDEBUG_OutputGuard( 
     381      vrjDBG_DRAW_MGR, vprDBG_STATE_LVL
     382      "[vrj::PfDrawManager::addDisplay()] ---- Opening new Display --------\n", 
     383      "[vrj::PfDrawManager::addDisplay()] ---- Display Open (done) --------\n" 
     384   ); 
    383385 
    384386   pfDisplay pf_disp;            // The pfDisplay to use 
    385387   pf_disp.disp = disp; 
    386388 
    387    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) << "\tDisplay is:" << (void*)(disp) << std::endl << vprDEBUG_FLUSH; 
    388    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) << "\tPfDrawManager::add Display: Got Display:\n" << (*disp) << vprDEBUG_FLUSH; 
     389   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
     390      << "Display is " << std::hex << (void*) disp << std::dec 
     391      << std::endl << vprDEBUG_FLUSH; 
     392   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
     393      << "Got Display:\n" << *disp << vprDEBUG_FLUSH; 
    389394 
    390395   int xo, yo, xs, ys; 
     
    456461#ifdef VJ_DEBUG 
    457462         // ouput debug info about the frame buffer config recieved 
    458          vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_VERB_LVL) 
     463         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
    459464            << "[vrj::PfDrawManager::addDisplay()] Got Mono FB config\n" 
    460465            << vprDEBUG_FLUSH; 
    461466         for ( unsigned int j = 0 ; j < fb_config.size(); ++j ) 
    462467         { 
    463             vprDEBUG_CONT(vrjDBG_DRAW_MGR,vprDBG_VERB_LVL) 
     468            vprDEBUG_CONT(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
    464469               << "  " << fb_config[j] << std::endl << vprDEBUG_FLUSH; 
    465470         } 
    466          vprDEBUG_CONT(vrjDBG_DRAW_MGR,vprDBG_VERB_LVL) 
     471         vprDEBUG_CONT(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
    467472            << std::endl << vprDEBUG_FLUSH; 
    468473#endif 
    469474 
    470          vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) 
     475         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    471476            << "[vrj::PfDrawManager::addDisplay()] " 
    472477            << "Configuring mono window attribs.\n" << vprDEBUG_FLUSH; 
     
    487492   unsigned num_vps = disp->getNumViewports(); 
    488493 
    489    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) << "   Num viewports: " << num_vps << std::endl << vprDEBUG_FLUSH; 
     494   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
     495      << "   Num viewports: " << num_vps << std::endl << vprDEBUG_FLUSH; 
     496 
    490497   for(unsigned vp_num=0; vp_num < num_vps; vp_num++) 
    491498   { 
     
    571578 
    572579            vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    573                << "PfDrawManager::addDisplay() creating simulator of type '" 
     580               << "[vrj:;PfDrawManager::addDisplay()] Creating simulator of type '" 
    574581               << sim_element->getID() << "'\n" << vprDEBUG_FLUSH; 
    575582 
     
    649656   // Dump the state 
    650657   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    651       << "Reconfiged the pfDrawManager.\n" << vprDEBUG_FLUSH; 
     658      << "Reconfiged the Performer Draw Manager.\n" << vprDEBUG_FLUSH; 
    652659   //vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) << (*this) << vprDEBUG_FLUSH; 
    653660   debugDump(vprDBG_CONFIG_LVL); 
     
    710717   if(mDisplays.end() == disp_i) 
    711718   { 
    712       vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "ERROR: PfDrawManager::removeDisplay: Tried to remove a non-existant display\n" << vprDEBUG_FLUSH; 
     719      vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
     720         << "ERROR: [vrj::PfDrawManager::removeDisplay()] Tried to remove a " 
     721         << "non-existant display!\n" << vprDEBUG_FLUSH; 
    713722      return; 
    714723   } 
     
    754763            { 
    755764               vprASSERT(false && "Trying to remove a non-existant channel"); 
    756                vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "Trying to remove a non-existant pfChannel\n" << vprDEBUG_FLUSH; 
     765               vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
     766                  << "Trying to remove a non-existant pfChannel\n" 
     767                  << vprDEBUG_FLUSH; 
    757768            } 
    758769 
     
    775786            { 
    776787               vprASSERT(false && "Trying to remove a non-existant channel"); 
    777                vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "Trying to remove a non-existant pfChannel"; 
     788               vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
     789                  << "Trying to remove a non-existant pfChannel\n" 
     790                  << vprDEBUG_FLUSH; 
    778791            } 
    779792 
     
    940953            << disp->getName() << "'" << std::endl; 
    941954         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    942             << "has an out of date OpenGL frame buffer configuration.
    943             << std::endl
     955            << "         has an out of date OpenGL frame buffer
     956            << "configuration.\n"
    944957         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    945             << "Expected version 2 but found version " 
    946             << fb_element->getVersion() << ".\n"; 
     958            << "         Expected version 3 but found version " 
     959            << fb_element->getVersion() << ".  Default values\n"; 
    947960         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    948             << "Default values will be used for some frame buffer settings.\n" 
     961            << "        will be used for some frame buffer settings.\n" 
    949962            << vprDEBUG_FLUSH; 
    950963      } 
     
    969982      { 
    970983         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    971             << clrOutBOLD(clrYELLOW, "WARNING:") 
    972             << " Color buffer red channel size was negative (" 
     984            << clrOutBOLD(clrYELLOW, "WARNING") 
     985            << ": Color buffer red channel size was negative (" 
    973986            << red_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    974987         red_size = 1; 
     
    978991      { 
    979992         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    980             << clrOutBOLD(clrYELLOW, "WARNING:") 
    981             << " Color buffer green channel size was negative (" 
     993            << clrOutBOLD(clrYELLOW, "WARNING") 
     994            << ": Color buffer green channel size was negative (" 
    982995            << green_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    983996         green_size = 1; 
     
    9871000      { 
    9881001         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    989             << clrOutBOLD(clrYELLOW, "WARNING:") 
    990             << " Color buffer blue channel size was negative (" 
     1002            << clrOutBOLD(clrYELLOW, "WARNING") 
     1003            << ": Color buffer blue channel size was negative (" 
    9911004            << blue_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    9921005         blue_size = 1; 
     
    9961009      { 
    9971010         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    998             << clrOutBOLD(clrYELLOW, "WARNING:") 
    999             << " Color buffer alpha channel size was negative (" 
     1011            << clrOutBOLD(clrYELLOW, "WARNING") 
     1012            << ": Color buffer alpha channel size was negative (" 
    10001013            << alpha_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    10011014         alpha_size = 1; 
     
    10051018      { 
    10061019         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    1007             << clrOutBOLD(clrYELLOW, "WARNING:") 
    1008             << " Auxiliary buffer count was negative (" << num_aux_bufs 
     1020            << clrOutBOLD(clrYELLOW, "WARNING") 
     1021            << ": Auxiliary buffer count was negative (" << num_aux_bufs 
    10091022            << ").  Setting to 0.\n" << vprDEBUG_FLUSH; 
    10101023         num_aux_bufs = 0; 
     
    10141027      { 
    10151028         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    1016             << clrOutBOLD(clrYELLOW, "WARNING:") 
    1017             << " Depth buffer size was negative (" << db_size 
     1029            << clrOutBOLD(clrYELLOW, "WARNING") 
     1030            << ": Depth buffer size was negative (" << db_size 
    10181031            << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    10191032         db_size = 1; 
     
    10231036      { 
    10241037         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    1025             << clrOutBOLD(clrYELLOW, "WARNING:") 
    1026             << " Stencil buffer size was negative (" << stencil_size 
     1038            << clrOutBOLD(clrYELLOW, "WARNING") 
     1039            << ": Stencil buffer size was negative (" << stencil_size 
    10271040            << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    10281041         stencil_size = 1; 
     
    10321045      { 
    10331046         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    1034             << clrOutBOLD(clrYELLOW, "WARNING:") 
    1035             << " Accumulation buffer red channel size was negative (" 
     1047            << clrOutBOLD(clrYELLOW, "WARNING") 
     1048            << ": Accumulation buffer red channel size was negative (" 
    10361049            << accum_red_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    10371050         accum_red_size = 1; 
     
    10411054      { 
    10421055         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    1043             << clrOutBOLD(clrYELLOW, "WARNING:") 
    1044             << " Accumulation buffer green channel size was negative (" 
     1056            << clrOutBOLD(clrYELLOW, "WARNING") 
     1057            << ": Accumulation buffer green channel size was negative (" 
    10451058            << accum_green_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    10461059         accum_green_size = 1; 
     
    10501063      { 
    10511064         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    1052             << clrOutBOLD(clrYELLOW, "WARNING:") 
    1053             << " Accumulation buffer blue channel size was negative (" 
     1065            << clrOutBOLD(clrYELLOW, "WARNING") 
     1066            << ": Accumulation buffer blue channel size was negative (" 
    10541067            << accum_blue_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    10551068         accum_blue_size = 1; 
     
    10591072      { 
    10601073         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    1061             << clrOutBOLD(clrYELLOW, "WARNING:") 
    1062             << " Accumulation buffer alpha channel size was negative (" 
     1074            << clrOutBOLD(clrYELLOW, "WARNING") 
     1075            << ": Accumulation buffer alpha channel size was negative (" 
    10631076            << accum_alpha_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    10641077         accum_alpha_size = 1; 
     
    10881101   const int pad_width_dot(40 - indent_level); 
    10891102   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    1090       << "OpenGL visual request settings for " << disp->getName() 
    1091       << ":\n"; 
     1103      << "OpenGL visual request settings for " << disp->getName() << ":\n"; 
    10921104   vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    10931105      << std::setiosflags(std::ios::left) << std::setfill('.') 
     
    12061218void PfDrawManager::updatePfProjections() 
    12071219{ 
    1208    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_VERB_LVL) 
     1220   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
    12091221      << "[vrj::PfDrawManager::updatePfProjections()] Entering." << std::endl 
    12101222      << vprDEBUG_FLUSH; 
     
    12841296void PfDrawManager::updatePfProjection(pfChannel* chan, Projection* proj)  //, bool simulator) 
    12851297{ 
    1286  
    1287    vprDEBUG_BEGIN(vrjDBG_DRAW_MGR,vprDBG_HVERB_LVL) 
     1298   vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, vprDBG_HVERB_LVL) 
    12881299      << "[vrj::PfDrawManager::updatePfProjection()] Entering. viewMat:\n" 
    12891300      << proj->getViewMatrix() << std::endl << vprDEBUG_FLUSH; 
     
    13261337   */ 
    13271338 
    1328    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_HEX_LVL) 
     1339   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_HEX_LVL) 
    13291340      << "Frustum: l:" << proj->getFrustum()[Frustum::VJ_LEFT] 
    13301341      << "   r: " << proj->getFrustum()[Frustum::VJ_RIGHT] 
     
    13331344      << vprDEBUG_FLUSH; 
    13341345 
    1335    vprDEBUG_END(vrjDBG_DRAW_MGR,vprDBG_HVERB_LVL) 
     1346   vprDEBUG_END(vrjDBG_DRAW_MGR, vprDBG_HVERB_LVL) 
    13361347      << "[vrj::PfDrawManager::updatePfProjection()] Exiting.\n" 
    13371348      << vprDEBUG_FLUSH; 
     
    13741385void PfDrawManager::debugDump(int debugLevel) 
    13751386{ 
    1376    vprDEBUG_BEGIN(vrjDBG_DRAW_MGR,debugLevel) 
     1387   vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, debugLevel) 
    13771388      << "-- DEBUG DUMP --------- " 
    13781389      << clrOutNORM(clrCYAN,"vrj::PfDrawManager: 0x") 
    1379       << std::hex << (void*)this << " ------------" << std::dec << std::endl 
    1380       << vprDEBUG_FLUSH; 
    1381    vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 
     1390      << std::hex << (void*) this << " ------------" << std::dec << std::endl 
     1391      << vprDEBUG_FLUSH; 
     1392   vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 
    13821393      << "App: 0x" << std::hex << (void*)mApp << std::dec << std::endl 
    13831394      << vprDEBUG_FLUSH; 
    1384    vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 
     1395   vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 
    13851396      << "Scene: 0x" << std::hex << (void*)mRoot << std::dec << std::endl 
    13861397      << vprDEBUG_FLUSH; 
    1387    vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 
     1398   vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 
    13881399      << "Sim scene: 0x" << std::hex << (void*)mRootWithSim << std::dec 
    13891400      << std::endl << vprDEBUG_FLUSH; 
     1401   vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 
     1402      << "Number of displays: " << mDisplays.size() << std::endl 
     1403      << vprDEBUG_FLUSH; 
     1404 
     1405   for (std::vector<pfDisplay>::iterator i = mDisplays.begin(); i != mDisplays.end(); i++) 
     1406   { 
     1407      debugDumpPfDisp(&(*i),debugLevel); 
     1408   } 
     1409 
     1410   vprDEBUG_END(vrjDBG_DRAW_MGR, debugLevel) 
     1411      << "-------- Dump end ----\n" << vprDEBUG_FLUSH; 
     1412} 
     1413 
     1414 
     1415void PfDrawManager::debugDumpPfDisp(pfDisplay* pf_disp, int debugLevel) 
     1416{ 
     1417   vprDEBUG_BEGIN(vrjDBG_DRAW_MGR, debugLevel) 
     1418      << "Display: 0x" << std::hex << (void*) pf_disp->disp << std::dec 
     1419      << std::endl << vprDEBUG_FLUSH; 
    13901420   vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 
    1391       << "Number of displays: " << mDisplays.size() << std::endl 
    1392       << vprDEBUG_FLUSH; 
    1393  
    1394    for (std::vector<pfDisplay>::iterator i = mDisplays.begin(); i != mDisplays.end(); i++) 
    1395    { 
    1396       debugDumpPfDisp(&(*i),debugLevel); 
    1397    } 
    1398  
    1399    vprDEBUG_END(vrjDBG_DRAW_MGR,debugLevel) << "-------- Dump end ----\n" << vprDEBUG_FLUSH; 
    1400 
    1401  
    1402  
    1403 void PfDrawManager::debugDumpPfDisp(pfDisplay* pf_disp, int debugLevel) 
    1404 
    1405    vprDEBUG_BEGIN(vrjDBG_DRAW_MGR,debugLevel) 
    1406       << "Display: " << (void*)(pf_disp->disp) << std::endl << vprDEBUG_FLUSH; 
    1407    vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 
    1408       << "pWin: " << (void*)(pf_disp->pWin) << std::endl << vprDEBUG_FLUSH; 
     1421      << "pWin: 0x" << std::hex << (void*) pf_disp->pWin << std::dec 
     1422      << std::endl << vprDEBUG_FLUSH; 
    14091423   vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 
    14101424      << "visual ID: 0x" << std::hex << pf_disp->pWin->getFBConfigId() 
     
    14151429      vprASSERT((pf_disp->viewports[vp].viewport != NULL) && "NULL viewport in pf_disp. Check if it was ever set."); 
    14161430 
    1417       vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) << "Viewport: " << vp << vprDEBUG_FLUSH; 
    1418       vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) << "      vp: " << *(pf_disp->viewports[vp].viewport) << vprDEBUG_FLUSH; 
     1431      vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 
     1432         << "Viewport " << vp << vprDEBUG_FLUSH; 
     1433      vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 
     1434         << "      vp: " << *pf_disp->viewports[vp].viewport 
     1435         << vprDEBUG_FLUSH; 
    14191436 
    14201437      for(int ch=0;ch<2;ch++) 
     
    14241441         if(cur_chan != NULL) 
    14251442            chan_mask = cur_chan->getShare(); 
    1426          vprDEBUG_NEXT(vrjDBG_DRAW_MGR,debugLevel) 
    1427               << "chan:" << ch << " -- " << (void*)cur_chan 
    1428               << "  shared: FOV:" << (chan_mask & PFCHAN_FOV) 
     1443         vprDEBUG_NEXT(vrjDBG_DRAW_MGR, debugLevel) 
     1444              << "chan " << ch << " -- " << std::hex << (void*) cur_chan 
     1445              << std::dec << "  shared: FOV:" << (chan_mask & PFCHAN_FOV) 
    14291446              << " Scene:" << (chan_mask & PFCHAN_SCENE) 
    14301447              << " AppFunc:" << (chan_mask & PFCHAN_APPFUNC) 
     
    14531470 
    14541471   // Ouput the visual id 
    1455    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) 
     1472   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    14561473      << "[vrj::PFconfigPWin()] framebuffer id: 0x" 
    14571474      << std::hex << pWin->getFBConfigId() << std::dec << std::endl 
     
    14591476   /* 
    14601477   int disp_num = int(pWin->getWSWindow()); 
    1461    vprDEBUG(vrjDBG_DRAW_MGR,vprDBG_CONFIG_LVL) 
     1478   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CONFIG_LVL) 
    14621479      << "[vrj::PFConfigPWin()] Window id: 0x" << std::hex << disp_num 
    14631480      << std::dec << std::endl << vprDEBUG_FLUSH; 
     
    14691486void PfAppFunc(pfChannel *chan, void* chandata) 
    14701487{ 
    1471    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "--- PfAppFunc: Enter ---.\n" << vprDEBUG_FLUSH; 
    1472    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 
     1488   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
     1489      << "--- PfAppFunc: Enter ---.\n" << vprDEBUG_FLUSH; 
     1490   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
     1491      << "chan: " << std::hex << chan << std::dec << std::endl 
     1492      << vprDEBUG_FLUSH; 
    14731493 
    14741494   pfChannel* master_chan = PfDrawManager::instance()->mMasterChan; 
    14751495   if(master_chan == chan) 
    14761496   { 
    1477       vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "I am the master of the house:\n" << vprDEBUG_FLUSH; 
     1497      vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
     1498         << "I am the master of the house:\n" << vprDEBUG_FLUSH; 
    14781499      if(PfDrawManager::instance()->mPfAppCalled == false)      // Haven't called it yet 
    14791500      { 
    1480          vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) << "pfApp has not been called yet.  Let me do it...\n" << vprDEBUG_FLUSH; 
     1501         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
     1502            << "pfApp has not been called yet.  Let me do it...\n" 
     1503            << vprDEBUG_FLUSH; 
    14811504         PfDrawManager::instance()->mPfAppCalled = true; 
    14821505         pfApp(); 
     
    14991522{ 
    15001523   vprDEBUG_OutputGuard(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL, 
    1501                         std::string("--- PfDrawFunc: Enter ---.\n"), 
    1502                         std::string("--- PfDrawFunc: Exit ---.\n")); 
    1503  
    1504    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 
     1524                        std::string("--- vrj::PfDrawFunc: Enter ---.\n"), 
     1525                        std::string("--- vrj::PfDrawFunc: Exit ---.\n")); 
     1526 
     1527   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1528      << "chan: " << std::hex << chan << std::dec << std::endl 
     1529      << vprDEBUG_FLUSH; 
    15051530 
    15061531      // Select correct buffer to draw to 
     
    15091534   { 
    15101535      vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
    1511          << "vrj::PfDrawFunc()] Drawing stereo win\n" << vprDEBUG_FLUSH; 
     1536         << "[vrj::PfDrawFunc()] Drawing stereo win\n" << vprDEBUG_FLUSH; 
    15121537      if(left_eye) 
    15131538      { 
     
    15531578void PfDrawFuncStereoLeft(pfChannel *chan, void* chandata) 
    15541579{ 
    1555    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfDrawFuncStereoLeft: Enter ---.\n" << vprDEBUG_FLUSH; 
    1556    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 
     1580   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1581      << "--- PfDrawFuncStereoLeft: Enter ---.\n" << vprDEBUG_FLUSH; 
     1582   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1583      << "chan: " << std::hex << chan << std::dec << std::endl 
     1584      << vprDEBUG_FLUSH; 
    15571585   PfDrawFunc(chan,chandata,true,false,true); 
    15581586} 
     
    15601588void PfDrawFuncStereoRight(pfChannel *chan, void* chandata) 
    15611589{ 
    1562    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfDrawFuncStereoRight: Enter ---.\n" << vprDEBUG_FLUSH; 
    1563    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 
     1590   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1591      << "--- PfDrawFuncStereoRight: Enter ---.\n" << vprDEBUG_FLUSH; 
     1592   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1593      << "chan: " << std::hex << chan << std::dec << std::endl 
     1594      << vprDEBUG_FLUSH; 
    15641595   PfDrawFunc(chan,chandata,false,true,true); 
    15651596} 
     
    15671598void PfDrawFuncMonoBackbuffer(pfChannel *chan, void* chandata) 
    15681599{ 
    1569    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfDrawFuncMonoBackbuffer: Enter ---.\n" << vprDEBUG_FLUSH; 
    1570    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "chan: " << chan << std::endl << vprDEBUG_FLUSH; 
     1600   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1601      << "--- PfDrawFuncMonoBackbuffer: Enter ---.\n" << vprDEBUG_FLUSH; 
     1602   vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1603      << "chan: " << std::hex << chan << std::dec << std::endl 
     1604      << vprDEBUG_FLUSH; 
    15711605   PfDrawFunc(chan,chandata,false,false,false); 
    15721606} 
     
    15881622 
    15891623    // Swap the buffer 
    1590     vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "--- PfPipeSwapFunc: pipe:" << pf_draw_mgr << " -- pw:" << pw << "\n" << vprDEBUG_FLUSH; 
     1624    vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     1625      << "--- [vrj::PfPipeSwapFunc] pipe: " << std::hex << p 
     1626      << " -- pw:" << pw << std::dec << "\n" << vprDEBUG_FLUSH; 
    15911627 
    15921628    // Barrier for Cluster