projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a372a3e
)
Errors: Have a whole set of tool-level error messages report to stderr.
author
John Kessenich
<cepheus@frii.com>
Fri, 3 Nov 2017 04:48:15 +0000
(22:48 -0600)
committer
John Kessenich
<cepheus@frii.com>
Fri, 3 Nov 2017 04:48:15 +0000
(22:48 -0600)
StandAlone/StandAlone.cpp
patch
|
blob
|
history
diff --git
a/StandAlone/StandAlone.cpp
b/StandAlone/StandAlone.cpp
index
265e4f3
..
6292a81
100644
(file)
--- a/
StandAlone/StandAlone.cpp
+++ b/
StandAlone/StandAlone.cpp
@@
-261,7
+261,7
@@
bool SetConfigFile(const std::string& name)
//
void Error(const char* message)
{
-
printf(
"%s: Error %s (use -h for usage)\n", ExecutableName, message);
+
fprintf(stderr,
"%s: Error %s (use -h for usage)\n", ExecutableName, message);
exit(EFailUsage);
}
@@
-1090,7
+1090,7
@@
int C_DECL main(int argc, char* argv[])
threads[t] = std::thread(CompileShaders, std::ref(workList));
if (threads[t].get_id() == std::thread::id())
{
-
printf(
"Failed to create thread\n");
+
fprintf(stderr,
"Failed to create thread\n");
return EFailThreadCreate;
}
}