Fix wrong indentation
Test: Builds
Bug: 64121714
Change-Id: I5992435d48deb261a138c94f33cd65f748577c0f
diff --git a/codec2/hidl/1.0/utils/ComponentStore.cpp b/codec2/hidl/1.0/utils/ComponentStore.cpp
index 9972b2a..a42b3a1 100644
--- a/codec2/hidl/1.0/utils/ComponentStore.cpp
+++ b/codec2/hidl/1.0/utils/ComponentStore.cpp
@@ -354,16 +354,16 @@
Return<void> ComponentStore::debug(
const hidl_handle& handle,
const hidl_vec<hidl_string>& /* args */) {
- LOG(INFO) << "debug -- dumping...";
- const native_handle_t *h = handle.getNativeHandle();
- if (!h || h->numFds != 1) {
- LOG(ERROR) << "debug -- dumping failed -- "
- "invalid file descriptor to dump to";
- return Void();
- }
- std::ostringstream out;
+ LOG(INFO) << "debug -- dumping...";
+ const native_handle_t *h = handle.getNativeHandle();
+ if (!h || h->numFds != 1) {
+ LOG(ERROR) << "debug -- dumping failed -- "
+ "invalid file descriptor to dump to";
+ return Void();
+ }
+ std::ostringstream out;
- { // Populate "out".
+ { // Populate "out".
constexpr const char indent[] = " ";
@@ -415,14 +415,14 @@
out << "End of dump -- C2ComponentStore: "
<< mStore->getName() << std::endl;
- }
+ }
- if (!android::base::WriteStringToFd(out.str(), h->data[0])) {
- PLOG(WARNING) << "debug -- dumping failed -- write()";
- } else {
- LOG(INFO) << "debug -- dumping succeeded";
- }
- return Void();
+ if (!android::base::WriteStringToFd(out.str(), h->data[0])) {
+ PLOG(WARNING) << "debug -- dumping failed -- write()";
+ } else {
+ LOG(INFO) << "debug -- dumping succeeded";
+ }
+ return Void();
}