--- a/ucx/logging.c Fri Sep 06 13:20:20 2013 +0200 +++ b/ucx/logging.c Fri Sep 06 13:28:05 2013 +0200 @@ -87,7 +87,11 @@ n = strlen(file); memcpy(msg+k, file, n); k += n; +#ifdef _WIN32 + k += _snprintf(msg+k, UCX_LOGGER_MSGMAX-k, ":%d ", line); +#else k += snprintf(msg+k, UCX_LOGGER_MSGMAX-k, ":%d ", line); +#endif /* _WIN32 */ } msg[k++] = '-'; msg[k++] = ' ';