On 28.01.19 16:51, Andrew Piskorski wrote:
Btw, the log output differs between Windows and Linux in other minor
but suspicious ways! Linux says "Notice:" as I expect, while Windows
instead says "[Notice]" for the severity. The 3rd Linux field,
"[-main-]", is completely missing on Windows! Likely that's related
somehow? If Ns_ThreadGetName() returns NULL or empty string there,
could that mess up the formatting of the rest of the line?
this is weird. actually, the thread name should not be NULL, and
even, when it is NULL, it should not lead to these results.
In case, the name is for unknown reason not initialized, the change [1]
should help.
The function Ns_ThreadId() returns uintptr_t, which is printed with
format-code PRIxPTR, maybe here is something
wrong. There is some indication [2], that the C99 prefix "ll" does not
work in all versions of MSC.
However, newer versions of MSC support inttypes.h. Do you compile with
the macro HAVE_INTTYPES_H
enabled?
> not know why one is relevant here, but maybe the string formatting
actually happens in LogToDString().
yes, formatting happens in LogToDString().
[1]
https://bitbucket.org/naviserver/naviserver/commits/a1a07e7f1397e71809c74ca3a4bf93649affd8b2
[2]
https://stackoverflow.com/questions/18107426/printf-format-for-unsigned-int64-on-windows
-gn
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel