vulkaninfo: Remove warning msgs from json output
authorShannon McPherson <shannon@lunarg.com>
Wed, 1 Aug 2018 21:16:46 +0000 (15:16 -0600)
committerShannon McPherson <31491060+shannon-lunarg@users.noreply.github.com>
Wed, 1 Aug 2018 22:47:13 +0000 (16:47 -0600)
Messages emitted from the DbgCallback function were previously sent to
stdout. These messages are now sent to stderr and no longer affect the
validity of json output.

vulkaninfo/vulkaninfo.c

index 6a4cceb..2e4e785 100644 (file)
@@ -210,8 +210,8 @@ static VKAPI_ATTR VkBool32 VKAPI_CALL DbgCallback(VkFlags msgFlags, VkDebugRepor
         sprintf(message, "DEBUG: [%s] Code %d : %s", pLayerPrefix, msgCode, pMsg);
     }
 
-    printf("%s\n", message);
-    fflush(stdout);
+    fprintf(stderr, "%s\n", message);
+    fflush(stderr);
     free(message);
 
     /*