Changeset 19917

Show
Ignore:
Timestamp:
04/09/07 09:24:33 (2 years ago)
Author:
patrick
Message:

Use more consistent formatting for output messages (especially for warnings
and errors).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vrjuggler/vrj/Draw/OGL/GlWindowWin32.cpp

    r19873 r19917  
    397397      { 
    398398         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    399             << clrOutBOLD(clrYELLOW, "WARNING:") << " Display window '" 
     399            << clrOutBOLD(clrYELLOW, "WARNING") << ": Display window '" 
    400400            << mVrjDisplay->getName() << "'" << std::endl; 
    401401         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    402             << "has an out of date OpenGL frame buffer configuration.
    403             << std::endl
     402            << "         has an out of date OpenGL frame buffer
     403            << "configuration.\n"
    404404         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    405             << "Expected version 2 but found version " 
    406             << gl_fb_elt->getVersion() << ".\n"; 
     405            << "         Expected version 3 but found version " 
     406            << gl_fb_elt->getVersion() << ".  Default values\n"; 
    407407         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    408             << "Default values will be used for some frame buffer settings.\n" 
     408            << "        will be used for some frame buffer settings.\n" 
    409409            << vprDEBUG_FLUSH; 
    410410      } 
     
    454454      { 
    455455         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    456             << clrOutBOLD(clrYELLOW, "WARNING:") 
    457             << " Color buffer red channel size was negative (" 
     456            << clrOutBOLD(clrYELLOW, "WARNING") 
     457            << ": Color buffer red channel size was negative (" 
    458458            << red_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    459459         red_size = 1; 
     
    463463      { 
    464464         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    465             << clrOutBOLD(clrYELLOW, "WARNING:") 
    466             << " Color buffer green channel size was negative (" 
     465            << clrOutBOLD(clrYELLOW, "WARNING") 
     466            << ": Color buffer green channel size was negative (" 
    467467            << green_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    468468         green_size = 1; 
     
    472472      { 
    473473         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    474             << clrOutBOLD(clrYELLOW, "WARNING:") 
    475             << " Color buffer blue channel size was negative (" 
     474            << clrOutBOLD(clrYELLOW, "WARNING") 
     475            << ": Color buffer blue channel size was negative (" 
    476476            << blue_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    477477         blue_size = 1; 
     
    481481      { 
    482482         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    483             << clrOutBOLD(clrYELLOW, "WARNING:") 
    484             << " Color buffer alpha channel size was negative (" 
     483            << clrOutBOLD(clrYELLOW, "WARNING") 
     484            << ": Color buffer alpha channel size was negative (" 
    485485            << alpha_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    486486         alpha_size = 1; 
     
    490490      { 
    491491         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    492             << clrOutBOLD(clrYELLOW, "WARNING:") 
    493             << " Auxiliary buffer count was negative (" << num_aux_bufs 
     492            << clrOutBOLD(clrYELLOW, "WARNING") 
     493            << ": Auxiliary buffer count was negative (" << num_aux_bufs 
    494494            << ").  Setting to 0.\n" << vprDEBUG_FLUSH; 
    495495         num_aux_bufs = 0; 
     
    499499      { 
    500500         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    501             << clrOutBOLD(clrYELLOW, "WARNING:") 
    502             << " Depth buffer size was negative (" << db_size 
     501            << clrOutBOLD(clrYELLOW, "WARNING") 
     502            << ": Depth buffer size was negative (" << db_size 
    503503            << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    504504         db_size = 1; 
     
    508508      { 
    509509         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    510             << clrOutBOLD(clrYELLOW, "WARNING:") 
    511             << " Stencil buffer size was negative (" << stencil_size 
     510            << clrOutBOLD(clrYELLOW, "WARNING") 
     511            << ": Stencil buffer size was negative (" << stencil_size 
    512512            << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    513513         stencil_size = 1; 
     
    517517      { 
    518518         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    519             << clrOutBOLD(clrYELLOW, "WARNING:") 
    520             << " Accumulation buffer red channel size was negative (" 
     519            << clrOutBOLD(clrYELLOW, "WARNING") 
     520            << ": Accumulation buffer red channel size was negative (" 
    521521            << accum_red_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    522522         accum_red_size = 1; 
     
    526526      { 
    527527         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    528             << clrOutBOLD(clrYELLOW, "WARNING:") 
    529             << " Accumulation buffer green channel size was negative (" 
     528            << clrOutBOLD(clrYELLOW, "WARNING") 
     529            << ": Accumulation buffer green channel size was negative (" 
    530530            << accum_green_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    531531         accum_green_size = 1; 
     
    535535      { 
    536536         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    537             << clrOutBOLD(clrYELLOW, "WARNING:") 
    538             << " Accumulation buffer blue channel size was negative (" 
     537            << clrOutBOLD(clrYELLOW, "WARNING") 
     538            << ": Accumulation buffer blue channel size was negative (" 
    539539            << accum_blue_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    540540         accum_blue_size = 1; 
     
    544544      { 
    545545         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    546             << clrOutBOLD(clrYELLOW, "WARNING:") 
    547             << " Accumulation buffer alpha channel size was negative (" 
     546            << clrOutBOLD(clrYELLOW, "WARNING") 
     547            << ": Accumulation buffer alpha channel size was negative (" 
    548548            << accum_alpha_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    549549         accum_alpha_size = 1; 
  • juggler/trunk/modules/vrjuggler/vrj/Draw/OGL/GlWindowXWin.cpp

    r19910 r19917  
    114114   { 
    115115      vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    116          << clrOutNORM(clrRED,"ERROR:") 
    117          << " [vrj::GlWindowXWin::open()] Window has not been configured\n" 
     116         << clrOutNORM(clrRED, "ERROR") 
     117         << ": [vrj::GlWindowXWin::open()] Window has not been configured\n" 
    118118         << vprDEBUG_FLUSH; 
    119119      return false; 
     
    123123   { 
    124124      vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    125          << clrOutNORM(clrRED,"ERROR:") 
    126          << " [vrj::GlWindowXWin::open()] Unable to open display '" 
     125         << clrOutNORM(clrRED, "ERROR") 
     126         << ": [vrj::GlWindowXWin::open()] Unable to open display '" 
    127127         << mXDisplayName << "'.\n" << vprDEBUG_FLUSH; 
    128128      return false; 
     
    137137      { 
    138138         vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    139             << clrOutNORM(clrRED,"ERROR:") << " Failed to get a GLX visual\n" 
    140             << vprDEBUG_FLUSH; 
     139            << clrOutNORM(clrRED, "ERROR") 
     140            << ": Failed to get a GLX visual!\n" << vprDEBUG_FLUSH; 
    141141         throw glwinx_OpenFailureException(); 
    142142      } 
     
    155155      { 
    156156         vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    157             << clrOutNORM(clrRED,"ERROR:") 
    158             << " vrj::GlWindowXWin: XCreateColorMap failed on '" 
     157            << clrOutNORM(clrRED, "ERROR") 
     158            << ": [vrj::GlWindowXWin::open()] XCreateColorMap failed on '" 
    159159            << mXDisplayName << "'.\n" << vprDEBUG_FLUSH; 
    160160         throw glwinx_OpenFailureException(); 
     
    186186      { 
    187187         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    188             << clrOutNORM(clrRED,"ERROR:") 
    189             << "vrj::GlWindowXWin: Couldn't create window for " << mXDisplayName 
    190             << std::endl << vprDEBUG_FLUSH; 
     188            << clrOutNORM(clrRED, "ERROR") 
     189            << ": [vrj::GlWindowXWin::open()] Couldn't create window for " 
     190            << mXDisplayName << std::endl << vprDEBUG_FLUSH; 
    191191         throw glwinx_OpenFailureException(); 
    192192      } 
     
    195195      /***************** Set Window Name/Class/Size/Pos *********************/ 
    196196 
    197       /* Before we map the window, we need a name for it (this is also useful for 
    198        * the resource cruft that'll get rid of the borders). 
     197      /* Before we map the window, we need a name for it (this is also useful 
     198       * for the resource cruft that'll get rid of the borders). 
    199199       */ 
    200200      classhint = ::XAllocClassHint(); 
     
    222222 
    223223      /* Get rid of window border, if configured to do so. 
    224        * This technique doesn't require any modifications to the .XDefaults file 
    225        * or anything, but it will only work with window managers based on MWM 
    226        * (the Motif window manager).  That covers most cases. 
     224       * This technique doesn't require any modifications to the .XDefaults 
     225       * file or anything, but it will only work with window managers based on 
     226       * MWM (the Motif window manager).  That covers most cases. 
    227227       * Unfortunately, the generic X resources for communicating with a window 
    228228       * manager don't support this feature. 
     
    231231      { 
    232232         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_HVERB_LVL) 
    233             << "[vrj::GlWindowXWin::open()] Attempting to make window borderless" 
    234             << std::endl << vprDEBUG_FLUSH; 
     233            << "[vrj::GlWindowXWin::open()] Attempting to make window " 
     234            << "borderless." << std::endl << vprDEBUG_FLUSH; 
     235 
    235236         Atom MotifHints = XInternAtom(mXDisplay, "_MOTIF_WM_HINTS", 0); 
    236237         if ( MotifHints == None ) 
    237238         { 
    238239            vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    239                << clrOutNORM(clrRED,"ERROR:") 
    240                << "vrj::GlWindowXWin: Could not get X atom for _MOTIF_WM_HINTS.
    241                << std::endl << vprDEBUG_FLUSH; 
     240               << clrOutNORM(clrRED, "ERROR") 
     241               << ": [vrj::GlWindowXWin::open()] Could not get X atom for
     242               << "_MOTIF_WM_HINTS." << std::endl << vprDEBUG_FLUSH; 
    242243         } 
    243244         else 
     
    255256      { 
    256257         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    257             << clrOutNORM(clrRED,"ERROR:") 
    258             << "vrj::GlWindowXWin: Could not get X atom for _NET_WM_STATE.
    259             << std::endl << vprDEBUG_FLUSH; 
     258            << clrOutNORM(clrRED, "ERROR") 
     259            << ": [vrj::GlWindowXWin::open()] Could not get X atom for
     260            << "_NET_WM_STATE." << std::endl << vprDEBUG_FLUSH; 
    260261      } 
    261262      else 
     
    277278            { 
    278279               vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    279                   << clrOutNORM(clrRED,"ERROR:") 
    280                   << "vrj::GlWindowXWin: Could not get X atom for _NET_WM_STATE_FULLSCREEN." 
    281                   << std::endl << vprDEBUG_FLUSH; 
     280                  << clrOutNORM(clrRED, "ERROR") 
     281                  << ": [vrj::GlWindowXWin::open()] Could not get X atom for " 
     282                  << "_NET_WM_STATE_FULLSCREEN." << std::endl 
     283                  << vprDEBUG_FLUSH; 
    282284            } 
    283285            else 
     
    293295            { 
    294296               vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    295                   << clrOutNORM(clrRED,"ERROR:") 
    296                   << "vrj::GlWindowXWin: Could not get X atoms for _NET_WM_STATE_ABOVE and _NET_WM_STATE_STAYS_ON_TOP." 
     297                  << clrOutNORM(clrRED, "ERROR") 
     298                  << ": [vrj::GlWindowXWin::open()] Could not get X atoms " 
     299                  << "for _NET_WM_STATE_ABOVE and _NET_WM_STATE_STAYS_ON_TOP." 
    297300                  << std::endl << vprDEBUG_FLUSH; 
    298301            } 
     
    310313            { 
    311314               vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    312                   << clrOutNORM(clrRED,"ERROR:") 
    313                   << "vrj::GlWindowXWin: Could not get X atoms for _NET_WM_STATE_MAXIMIZED_(HORZ/VERT)." 
    314                   << std::endl << vprDEBUG_FLUSH; 
     315                  << clrOutNORM(clrRED, "ERROR") 
     316                  << ": [vrj::GlWindowXWin::open()] Could not get X atoms " 
     317                  << "for _NET_WM_STATE_MAXIMIZED_(HORZ/VERT)." << std::endl 
     318                  << vprDEBUG_FLUSH; 
    315319            } 
    316320            else 
     
    326330            { 
    327331               vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    328                   << clrOutNORM(clrRED,"ERROR:") 
    329                   << "vrj::GlWindowXWin: Could not get X atom for _NET_WM_STATE_MODAL.
    330                   << std::endl << vprDEBUG_FLUSH; 
     332                  << clrOutNORM(clrRED, "ERROR") 
     333                  << ": [vrj::GlWindowXWin::open()] Could not get X atom for
     334                  << "_NET_WM_STATE_MODAL." << std::endl << vprDEBUG_FLUSH; 
    331335            } 
    332336            else 
     
    338342 
    339343         XChangeProperty(mXDisplay, mXWindow, net_wm_state, XA_ATOM, 
    340                          32, PropModeReplace, (unsigned char *) net_winstates, curr_winstate); 
     344                         32, PropModeReplace, (unsigned char*) net_winstates, 
     345                         curr_winstate); 
    341346      } 
    342347          
     
    349354      ::XSync(mXDisplay, 0); 
    350355 
    351       vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) << "vrj::GlWindowXWin: done mapping window\n" 
    352                                   << vprDEBUG_FLUSH; 
     356      vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL) 
     357         << "[vrj::GlWindowXWin::open()] Done mapping window.\n" 
     358         << vprDEBUG_FLUSH; 
    353359 
    354360      /********************* OpenGL Context Stuff *********************/ 
     
    358364      { 
    359365         vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    360             << clrOutNORM(clrRED,"ERROR:") << "Couldn't create GlxContext for '" 
     366            << clrOutNORM(clrRED, "ERROR") 
     367            << ": Couldn't create GlxContext for '" 
    361368            << mXDisplayName << "'\n" << vprDEBUG_FLUSH; 
    362369         throw glwinx_OpenFailureException(); 
     
    617624   { 
    618625      vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    619          << clrOutNORM(clrRED, "ERROR:") << " X Display '" << mXDisplayName 
     626         << clrOutNORM(clrRED, "ERROR") << ": X Display '" << mXDisplayName 
    620627         << "' doesn't support GLX.\n" << vprDEBUG_FLUSH; 
    621628      return NULL; 
     
    642649      { 
    643650         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    644             << clrOutBOLD(clrYELLOW, "WARNING:") << " Display window '" 
     651            << clrOutBOLD(clrYELLOW, "WARNING") << ": Display window '" 
    645652            << mVrjDisplay->getName() << "'" << std::endl; 
    646653         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    647             << "has an out of date OpenGL frame buffer configuration.\n"; 
     654            << "         has an out of date OpenGL frame buffer " 
     655            << "configuration.\n"; 
    648656         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    649             << "Expected version 3 but found version " 
     657            << "         Expected version 3 but found version " 
    650658            << gl_fb_elt->getVersion() << ".  Default values\n"; 
    651659         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    652             << "will be used for some frame buffer settings.\n" 
     660            << "         will be used for some frame buffer settings.\n" 
    653661            << vprDEBUG_FLUSH; 
    654662      } 
     
    704712      { 
    705713         vprDEBUG(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    706             << clrOutBOLD(clrRED, "ERROR:") 
    707             << " Failed to get X11 visual info for visual ID " 
     714            << clrOutBOLD(clrRED, "ERROR") 
     715            << ": Failed to get X11 visual info for visual ID " 
    708716            << std::hex << visual_id << std::dec << std::endl 
    709717            << vprDEBUG_FLUSH; 
    710718         vprDEBUG_NEXT(vprDBG_ERROR, vprDBG_CRITICAL_LVL) 
    711             << "Window '" << mVrjDisplay->getName() << "' cannot be opened" 
    712             << std::endl << vprDEBUG_FLUSH; 
     719            << "       Window '" << mVrjDisplay->getName() 
     720            << "' cannot be opened" << std::endl << vprDEBUG_FLUSH; 
    713721      } 
    714722 
     
    720728      { 
    721729         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    722             << clrOutBOLD(clrYELLOW, "WARNING:") 
    723             << " Color buffer red channel size was negative (" 
     730            << clrOutBOLD(clrYELLOW, "WARNING") 
     731            << ": Color buffer red channel size was negative (" 
    724732            << red_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    725733         red_size = 1; 
     
    729737      { 
    730738         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    731             << clrOutBOLD(clrYELLOW, "WARNING:") 
    732             << " Color buffer green channel size was negative (" 
     739            << clrOutBOLD(clrYELLOW, "WARNING") 
     740            << ": Color buffer green channel size was negative (" 
    733741            << green_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    734742         green_size = 1; 
     
    738746      { 
    739747         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    740             << clrOutBOLD(clrYELLOW, "WARNING:") 
    741             << " Color buffer blue channel size was negative (" 
     748            << clrOutBOLD(clrYELLOW, "WARNING") 
     749            << ": Color buffer blue channel size was negative (" 
    742750            << blue_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    743751         blue_size = 1; 
     
    747755      { 
    748756         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    749             << clrOutBOLD(clrYELLOW, "WARNING:") 
    750             << " Color buffer alpha channel size was negative (" 
     757            << clrOutBOLD(clrYELLOW, "WARNING") 
     758            << ": Color buffer alpha channel size was negative (" 
    751759            << alpha_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    752760         alpha_size = 1; 
     
    756764      { 
    757765         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    758             << clrOutBOLD(clrYELLOW, "WARNING:") 
    759             << " Auxiliary buffer count was negative (" << num_aux_bufs 
     766            << clrOutBOLD(clrYELLOW, "WARNING") 
     767            << ": Auxiliary buffer count was negative (" << num_aux_bufs 
    760768            << ").  Setting to 0.\n" << vprDEBUG_FLUSH; 
    761769         num_aux_bufs = 0; 
     
    765773      { 
    766774         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    767             << clrOutBOLD(clrYELLOW, "WARNING:") 
    768             << " Depth buffer size was negative (" << db_size 
     775            << clrOutBOLD(clrYELLOW, "WARNING") 
     776            << ": Depth buffer size was negative (" << db_size 
    769777            << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    770778         db_size = 1; 
     
    774782      { 
    775783         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    776             << clrOutBOLD(clrYELLOW, "WARNING:") 
    777             << " Stencil buffer size was negative (" << stencil_size 
     784            << clrOutBOLD(clrYELLOW, "WARNING") 
     785            << ": Stencil buffer size was negative (" << stencil_size 
    778786            << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    779787         stencil_size = 1; 
     
    783791      { 
    784792         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    785             << clrOutBOLD(clrYELLOW, "WARNING:") 
    786             << " Accumulation buffer red channel size was negative (" 
     793            << clrOutBOLD(clrYELLOW, "WARNING") 
     794            << ": Accumulation buffer red channel size was negative (" 
    787795            << accum_red_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    788796         accum_red_size = 1; 
     
    792800      { 
    793801         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    794             << clrOutBOLD(clrYELLOW, "WARNING:") 
    795             << " Accumulation buffer green channel size was negative (" 
     802            << clrOutBOLD(clrYELLOW, "WARNING") 
     803            << ": Accumulation buffer green channel size was negative (" 
    796804            << accum_green_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    797805         accum_green_size = 1; 
     
    801809      { 
    802810         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    803             << clrOutBOLD(clrYELLOW, "WARNING:") 
    804             << " Accumulation buffer blue channel size was negative (" 
     811            << clrOutBOLD(clrYELLOW, "WARNING") 
     812            << ": Accumulation buffer blue channel size was negative (" 
    805813            << accum_blue_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    806814         accum_blue_size = 1; 
     
    810818      { 
    811819         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_WARNING_LVL) 
    812             << clrOutBOLD(clrYELLOW, "WARNING:") 
    813             << " Accumulation buffer alpha channel size was negative (" 
     820            << clrOutBOLD(clrYELLOW, "WARNING") 
     821            << ": Accumulation buffer alpha channel size was negative (" 
    814822            << accum_alpha_size << ").  Setting to 1.\n" << vprDEBUG_FLUSH; 
    815823         accum_alpha_size = 1; 
     
    11061114      { 
    11071115         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    1108             << "WARNING: Could not get an OpenGL visual for '" << mXDisplayName 
    1109             << "'\n"; 
     1116            << clrOutBOLD(clrYELLOW, "WARNING") << ": Could not get an " 
     1117            << "OpenGL visual for '" << mXDisplayName << "'\n"; 
    11101118         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    1111             << "with stereo rendering enabled; trying without.\n" 
     1119            << "         with stereo rendering enabled; trying without.\n" 
    11121120            << vprDEBUG_FLUSH; 
    11131121         mInStereo = false; 
     
    11321140      { 
    11331141         vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    1134             << "WARNING: Could not get an OpenGL visual for '" << mXDisplayName 
    1135             << "'\n"; 
     1142            << clrOutBOLD(clrYELLOW, "WARNING") << ": Could not get an " 
     1143            << "OpenGL visual for '" << mXDisplayName << "'\n"; 
    11361144         vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    1137             << "with accumulation buffer settings; trying without.\n" 
     1145            << "         with accumulation buffer settings; trying without.\n" 
    11381146            << vprDEBUG_FLUSH; 
    11391147 
     
    11541162      // Disabling the alpha channel may give us something usable. 
    11551163      vprDEBUG(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    1156          << "WARNING: Could not get an OpenGL visual for '" << mXDisplayName 
    1157          << "'\n"; 
     1164         << clrOutBOLD(clrYELLOW, "WARNING") << ": Could not get an OpenGL " 
     1165         << "visual for '" << mXDisplayName << "'\n"; 
    11581166      vprDEBUG_NEXTnl(vrjDBG_DRAW_MGR, vprDBG_CRITICAL_LVL) 
    11591167         << "with a color buffer alpha channel; trying without.\n" 
     
    12091217} 
    12101218 
    1211  
    12121219} // namespace vrj