ucx/logging.c

changeset 153
2d3d1313862a
parent 152
3238f65db163
child 171
49cebb8eceff
--- 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++] = ' ';

mercurial