projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0f3518
)
layers: flush logged output so it's visible immediately
author
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Wed, 25 Feb 2015 23:56:00 +0000
(16:56 -0700)
committer
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Thu, 26 Feb 2015 00:15:47 +0000
(17:15 -0700)
layers/layers_msg.h
patch
|
blob
|
history
diff --git
a/layers/layers_msg.h
b/layers/layers_msg.h
index
55e70f8
..
933012c
100644
(file)
--- a/
layers/layers_msg.h
+++ b/
layers/layers_msg.h
@@
-43,8
+43,10
@@
static void layerCbMsg(XGL_DBG_MSG_TYPE msgType,
switch (msgType) {
case XGL_DBG_MSG_ERROR:
if (g_reportingLevel <= XGL_DBG_LAYER_LEVEL_ERROR) {
- if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG)
+ if (g_debugAction & XGL_DBG_LAYER_ACTION_LOG_MSG)
{
fprintf(g_logFile, "{%s}ERROR : %s\n", pLayerPrefix, pMsg);
+ fflush(g_logFile);
+ }
if (g_debugAction & XGL_DBG_LAYER_ACTION_CALLBACK)
while (pTrav) {
pTrav->pfnMsgCallback(msgType, validationLevel, srcObject, location, msgCode, pMsg, pTrav->pUserData);