From ae9d521efcc57449a48b8534a51034663b493b06 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Thu, 1 Apr 2021 00:38:43 +0200 Subject: [PATCH] Export metadata as "regular" (non-simple) JSON This makes the output independent from changes to identifiers used in the thrift specification. --- src/dwarfsck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dwarfsck.cpp b/src/dwarfsck.cpp index e809f859..344a8fd6 100644 --- a/src/dwarfsck.cpp +++ b/src/dwarfsck.cpp @@ -127,7 +127,7 @@ int dwarfsck(int argc, char** argv) { if (!export_metadata.empty()) { auto of = folly::File(export_metadata, O_RDWR | O_CREAT | O_TRUNC); filesystem_v2 fs(lgr, mm, fsopts); - auto json = fs.serialize_metadata_as_json(true); + auto json = fs.serialize_metadata_as_json(false); if (folly::writeFull(of.fd(), json.data(), json.size()) < 0) { LOG_ERROR << "failed to export metadata"; }