- Timestamp:
- Nov 14, 2016 1:18:06 PM (7 years ago)
- Location:
- nanoscale/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nanoscale/trunk/Makefile.in
r6574 r6624 1 USE_TCL_CONFIG 2 WANT_TRACE 1 USE_TCL_CONFIG = #yes 2 WANT_TRACE = #yes 3 3 4 4 CC = @CC@ … … 28 28 SERVER_OBJS = server.o 29 29 ifdef USE_TCL_CONFIG 30 SERVER_OBJS 30 SERVER_OBJS += tclparser.o 31 31 else 32 SERVER_OBJS 32 SERVER_OBJS += configparser.o 33 33 endif 34 34 CLIENT_OBJS = client.o clientlib.o … … 41 41 42 42 ifdef WANT_TRACE 43 DEFINES 43 DEFINES = -DWANT_TRACE 44 44 endif 45 45 ifdef USE_TCL_CONFIG 46 CONFIGFILE 47 DEFINES 46 CONFIGFILE = renderservers.tcl 47 DEFINES = -DTCL_CONFIG 48 48 else 49 CONFIGFILE 50 DEFINES 49 CONFIGFILE = renderservers.cfg 50 DEFINES = 51 51 endif 52 52 DEFINES += -DSERVERSFILE=\"$(libdir)/$(CONFIGFILE)\" \ … … 55 55 INCLUDES = -I. 56 56 ifdef USE_TCL_CONFIG 57 INCLUDES 57 INCLUDES += $(TCL_INC_SPEC) 58 58 endif 59 59 ifdef USE_TCL_CONFIG 60 LIBS 60 LIBS = $(TCL_LIB_SPEC) -Wl,-rpath,$(LD_RUN_PATH) 61 61 else 62 LIBS 62 LIBS = 63 63 endif 64 64 -
nanoscale/trunk/server.c
r6609 r6624 20 20 #include <sys/stat.h> 21 21 #include <sys/file.h> 22 #include <syslog.h> 22 23 #include <unistd.h> 23 24 #include <fcntl.h> … … 82 83 if (serverPid != getpid()) { 83 84 length = snprintf(message, MSG_LEN, "(%d) %s: %s:%d ", 84 serverPid, syslogLevels[priority], 85 serverPid, syslogLevels[priority], s, lineNum); 85 86 } else { 86 87 length = snprintf(message, MSG_LEN, "%s: %s:%d ", 87 syslogLevels[priority], 88 syslogLevels[priority], s, lineNum); 88 89 } 89 90 length += vsnprintf(message + length, MSG_LEN - length, fmt, lst);
Note: See TracChangeset
for help on using the changeset viewer.