diff options
| author | Shannon McPherson <shannon@lunarg.com> | 2018-08-01 15:16:46 -0600 |
|---|---|---|
| committer | Shannon McPherson <31491060+shannon-lunarg@users.noreply.github.com> | 2018-08-01 16:47:13 -0600 |
| commit | 3d6c34fbca1c2329fe7d07b9d92b68ba1529a960 (patch) | |
| tree | 5e5b1d14c2b4bf7f1db73b1d993156d06c4df7c9 | |
| parent | 57733e4e630aa6e5c460e100d5a56de0c6cdab08 (diff) | |
| download | usermoji-3d6c34fbca1c2329fe7d07b9d92b68ba1529a960.tar.xz | |
vulkaninfo: Remove warning msgs from json output
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.
| -rw-r--r-- | vulkaninfo/vulkaninfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vulkaninfo/vulkaninfo.c b/vulkaninfo/vulkaninfo.c index 6a4ccebe..2e4e7850 100644 --- a/vulkaninfo/vulkaninfo.c +++ b/vulkaninfo/vulkaninfo.c @@ -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); /* |
