comparison main.c @ 520:ab56ed0d0c25

Slight optimization.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Jun 2012 23:31:10 +0300
parents f17d2ab25618
children a9a81db93c74
comparison
equal deleted inserted replaced
519:f17d2ab25618 520:ab56ed0d0c25
235 235
236 void printMsgV(nn_window_t *win, int flags, const char *fmt, va_list ap) 236 void printMsgV(nn_window_t *win, int flags, const char *fmt, va_list ap)
237 { 237 {
238 char tmpStr[128], *buf; 238 char tmpStr[128], *buf;
239 239
240 str_get_timestamp(tmpStr, sizeof(tmpStr), "½17½[½11½%H:%M:%S½17½]½0½ "); 240 if (flags & LOG_STAMP)
241 {
242 str_get_timestamp(tmpStr, sizeof(tmpStr), "½17½[½11½%H:%M:%S½17½]½0½ ");
243 }
241 244
242 buf = th_strdup_vprintf(fmt, ap); 245 buf = th_strdup_vprintf(fmt, ap);
243 246
244 if (optLogFile && (flags & LOG_FILE)) 247 if (optLogFile && (flags & LOG_FILE))
245 { 248 {