Changeset 2374 for trunk/packages


Ignore:
Timestamp:
Aug 15, 2011 3:37:50 PM (13 years ago)
Author:
gah
Message:
 
Location:
trunk/packages/vizservers/nanovis
Files:
2 edited

Legend:

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

    r2096 r2374  
    88#include <GL/glut.h>
    99#include <syslog.h>
     10
     11static const char *syslogLevels[] = {
     12    "emergency",                        /* System is unusable */
     13    "alert",                            /* Action must be taken immediately */
     14    "critical",                         /* Critical conditions */
     15    "error",                            /* Error conditions */
     16    "warning",                          /* Warning conditions */
     17    "notice",                           /* Normal but significant condition */
     18    "info",                             /* Informational */
     19    "debug",                            /* Debug-level messages */
     20};
    1021
    1122void
     
    2536        s++;
    2637    }
    27     length = snprintf(message, MSG_LEN, "line %d of \"%s\": ", lineNum, s);
     38    length = snprintf(message, MSG_LEN, "nanovis (%d) %s: %s:%d ",
     39                      getpid(), syslogLevels[priority],  s, lineNum);
    2840    length += vsnprintf(message + length, MSG_LEN - length, fmt, lst);
    2941    message[MSG_LEN] = '\0';
  • trunk/packages/vizservers/nanovis/nanovis.cpp

    r2372 r2374  
    133133bool NanoVis::axis_on = true;
    134134bool NanoVis::config_pending = false;
    135 bool NanoVis::debug_flag = false;
     135bool NanoVis::debug_flag = true;
    136136
    137137Tcl_Interp *NanoVis::interp;
     
    22702270    glutDisplayFunc(NanoVis::render);
    22712271#else
    2272     write(1, "nanovis ", 8);
    22732272    glutDisplayFunc(NanoVis::display);
    22742273    glutReshapeFunc(NanoVis::resize_offscreen_buffer);
     
    23752374
    23762375#ifdef XINETD
     2376#ifdef notdef
    23772377    signal(SIGPIPE,SIG_IGN);
     2378#endif
     2379    write(1, "nanovis ", 8);
    23782380    NvInitService();
    23792381#endif
Note: See TracChangeset for help on using the changeset viewer.