ucx/logging.c

changeset 153
2d3d1313862a
parent 152
3238f65db163
child 171
49cebb8eceff
equal deleted inserted replaced
152:3238f65db163 153:2d3d1313862a
85 } 85 }
86 if ((logger->mask & UCX_LOGGER_SOURCE) > 0) { 86 if ((logger->mask & UCX_LOGGER_SOURCE) > 0) {
87 n = strlen(file); 87 n = strlen(file);
88 memcpy(msg+k, file, n); 88 memcpy(msg+k, file, n);
89 k += n; 89 k += n;
90 #ifdef _WIN32
91 k += _snprintf(msg+k, UCX_LOGGER_MSGMAX-k, ":%d ", line);
92 #else
90 k += snprintf(msg+k, UCX_LOGGER_MSGMAX-k, ":%d ", line); 93 k += snprintf(msg+k, UCX_LOGGER_MSGMAX-k, ":%d ", line);
94 #endif /* _WIN32 */
91 } 95 }
92 96
93 msg[k++] = '-'; msg[k++] = ' '; 97 msg[k++] = '-'; msg[k++] = ' ';
94 98
95 va_list args; 99 va_list args;

mercurial