#if 1 //Doesn't print anything
printf("(%s:%d): ",filename,line);
#else //Prints, but bloated code and interleaved output
printf("(");
printf("%s",filename);
printf(":%d): ",line);
#endif
The one-liner prints nothing. The second one works, but output from multiple threads becomes interleaved. I conclude that something is broken with the "%s" specifier implementation.
What’s going on? Can this be fixed and/or worked around?
Additional details that may be relevant but probably aren’t:
I tried to reproduce the problem in a simple OptiX application that does not depend on the mentioned 3rd-party library (and so runs in 436), and I was not able to reproduce the problem there either.
Either this issue was already fixed in 436, or it is something more-complicated related to my real application that I will need to isolate once I can run it in 436. If it turns out to be the latter, I will update here.