diff options
| author | Tobin Ehlis <tobin@lunarg.com> | 2015-09-15 09:55:54 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobin@lunarg.com> | 2015-09-16 08:10:21 -0600 |
| commit | 14ae26d06b54f19f5367755ef4db0f86c03482a4 (patch) | |
| tree | d114cf1b612e595322e40addd4fffd9742c1e2a5 /layers/mem_tracker.cpp | |
| parent | 967ce521d87b3e9a90114119dc816c4eb55f5a43 (diff) | |
| download | usermoji-14ae26d06b54f19f5367755ef4db0f86c03482a4.tar.xz | |
layers: Fix layer STDOUT logging
Diffstat (limited to 'layers/mem_tracker.cpp')
| -rw-r--r-- | layers/mem_tracker.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp index 0c96e40a..6042f8e6 100644 --- a/layers/mem_tracker.cpp +++ b/layers/mem_tracker.cpp @@ -1307,15 +1307,7 @@ static void init_mem_tracker( if (debug_action & VK_DBG_LAYER_ACTION_LOG_MSG) { option_str = getLayerOption("MemTrackerLogFilename"); - if (option_str) { - log_output = fopen(option_str, "w"); - } - if (log_output == NULL) { - if (option_str) - cout << endl << "MemTracker ERROR: Bad output filename specified: " << option_str << ". Writing to STDOUT instead" << endl << endl; - log_output = stdout; - } - + log_output = getLayerLogOutput(option_str, "MemTracker"); layer_create_msg_callback(my_data->report_data, report_flags, log_callback, (void *) log_output, &my_data->logging_callback); } |
