fuzz: change output extension and fix usage string (#2778)
diff --git a/tools/fuzz/fuzz.cpp b/tools/fuzz/fuzz.cpp
index 481942f..24e4ac6 100644
--- a/tools/fuzz/fuzz.cpp
+++ b/tools/fuzz/fuzz.cpp
@@ -74,12 +74,12 @@
USAGE: %s [options] <input.spv> -o <output.spv>
The SPIR-V binary is read from <input.spv>, which must have extension .spv. If
-<input.json> is also present, facts about the SPIR-V binary are read from this
+<input.facts> is also present, facts about the SPIR-V binary are read from this
file.
The transformed SPIR-V binary is written to <output.spv>. Human-readable and
-binary representations of the transformations that were applied to obtain this
-binary are written to <output.json> and <output.transformations>, respectively.
+binary representations of the transformations that were applied are written to
+<output.transformations_json> and <output.transformations>, respectively.
NOTE: The fuzzer is a work in progress.
@@ -472,7 +472,8 @@
return 1;
}
- std::ofstream transformations_json_file(output_file_prefix + ".json");
+ std::ofstream transformations_json_file(output_file_prefix +
+ ".transformations_json");
transformations_json_file << json_string;
transformations_json_file.close();