Ignore:
Timestamp:
Mar 4, 2013, 8:57:13 PM (12 years ago)
Author:
ldelgass
Message:

Remove XINETD define from nanovis. We only support server mode now, no glut
interaction loop with mouse/keyboard handlers. Fixes for trace logging to make
output closer to vtkvis: inlcude function name for trace messages, remove
newlines from format strings in macros since newlines get added by syslog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/NvShader.cpp

    r2972 r3452  
    4040
    4141    if (lastError) {
    42         TRACE("Cg Error: %s\n", cgGetErrorString(lastError));
     42        TRACE("Cg Error: %s", cgGetErrorString(lastError));
    4343        if (getCgContext())
    44             TRACE("%s\n", cgGetLastListing(getCgContext()));
     44            TRACE("%s", cgGetLastListing(getCgContext()));
    4545        return false;
    4646    }
     
    5454    std::string path = R2FilePath::getInstance()->getPath(fileName);
    5555    if (path.empty()) {
    56         ERROR("can't find program \"%s\"\n", fileName);
     56        ERROR("can't find program \"%s\"", fileName);
    5757    }
    58     TRACE("cg program compiling: %s\n", path.c_str());
     58    TRACE("cg program compiling: %s", path.c_str());
    5959    CGprogram program;
    6060    program = cgCreateProgramFromFile(context, CG_SOURCE, path.c_str(), profile,
     
    6363    CGerror LastError = cgGetError();
    6464    if (LastError) {
    65         ERROR("Error message: %s\n", cgGetLastListing(context));
     65        ERROR("Error message: %s", cgGetLastListing(context));
    6666    }
    67     TRACE("successfully compiled program: %s\n", path.c_str());
     67    TRACE("successfully compiled program: %s", path.c_str());
    6868    return program;
    6969}
     
    110110{
    111111    if (_cgVP != NULL) {
    112         TRACE("Destroying vertex program: %s\n", _vpFile.c_str());
     112        TRACE("Destroying vertex program: %s", _vpFile.c_str());
    113113        cgDestroyProgram(_cgVP);
    114114    }
    115115
    116116    if (_cgFP != NULL) {
    117         TRACE("Destroying fragment program: %s\n", _fpFile.c_str());
     117        TRACE("Destroying fragment program: %s", _fpFile.c_str());
    118118        cgDestroyProgram(_cgFP);
    119119    }
     
    122122void NvShader::setErrorCallback(NvCgCallbackFunction callback)
    123123{
    124     TRACE("NvShader setting error callback to: %p\n", callback);
     124    TRACE("NvShader setting error callback to: %p", callback);
    125125    cgSetErrorCallback(callback);
    126126}
Note: See TracChangeset for help on using the changeset viewer.