Changeset 2374 for trunk/packages/vizservers
- Timestamp:
- Aug 15, 2011, 3:37:50 PM (13 years ago)
- Location:
- trunk/packages/vizservers/nanovis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/Trace.cpp
r2096 r2374 8 8 #include <GL/glut.h> 9 9 #include <syslog.h> 10 11 static 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 }; 10 21 11 22 void … … 25 36 s++; 26 37 } 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); 28 40 length += vsnprintf(message + length, MSG_LEN - length, fmt, lst); 29 41 message[MSG_LEN] = '\0'; -
trunk/packages/vizservers/nanovis/nanovis.cpp
r2372 r2374 133 133 bool NanoVis::axis_on = true; 134 134 bool NanoVis::config_pending = false; 135 bool NanoVis::debug_flag = false;135 bool NanoVis::debug_flag = true; 136 136 137 137 Tcl_Interp *NanoVis::interp; … … 2270 2270 glutDisplayFunc(NanoVis::render); 2271 2271 #else 2272 write(1, "nanovis ", 8);2273 2272 glutDisplayFunc(NanoVis::display); 2274 2273 glutReshapeFunc(NanoVis::resize_offscreen_buffer); … … 2375 2374 2376 2375 #ifdef XINETD 2376 #ifdef notdef 2377 2377 signal(SIGPIPE,SIG_IGN); 2378 #endif 2379 write(1, "nanovis ", 8); 2378 2380 NvInitService(); 2379 2381 #endif
Note: See TracChangeset
for help on using the changeset viewer.