From 5036a0fc07a833145010575c3e7f0e3ff39d9090 Mon Sep 17 00:00:00 2001 From: Robert Shih Date: Fri, 21 Apr 2023 13:10:44 -0700 Subject: [PATCH] dumpsys properties: fix indent & quotation [ Merge of go/wvgerrit/c/cdm/+/171352 ] Bug: 239462891 Test: adb shell dumpsys android.hardware.drm.IDrmFactory/widevine -p Change-Id: I0b9ea26a4027b7fbbd277536c0e705885eef408e --- libwvdrmengine/src/WVDrmFactory.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libwvdrmengine/src/WVDrmFactory.cpp b/libwvdrmengine/src/WVDrmFactory.cpp index f33be24a..c314e7e7 100644 --- a/libwvdrmengine/src/WVDrmFactory.cpp +++ b/libwvdrmengine/src/WVDrmFactory.cpp @@ -204,13 +204,13 @@ void WVDrmFactory::printCdmMetrics(int fd) { } void WVDrmFactory::printCdmProperties(int fd) { - dprintf(fd, " - widevine_cdm_properties:\n"); + dprintf(fd, "widevine_cdm_properties:\n"); android::sp cdm(getCDM()); const bool isLevel1 = cdm->IsSecurityLevelSupported(wvcdm::CdmSecurityLevel::kSecurityLevelL1); - dprintf(fd, " default_security_level: \"%s\"\n", isLevel1 ? "L1" : "L3"); + dprintf(fd, " default_security_level: %s\n", isLevel1 ? "L1" : "L3"); const std::map cdmProperties = { {"version_widevine_cdm", wvcdm::QUERY_KEY_WVCDM_VERSION}, @@ -249,7 +249,7 @@ void WVDrmFactory::printCdmProperties(int fd) { cdm->QueryStatus(wvcdm::RequestedSecurityLevel::kLevelDefault, property.second, &value); string outString = stringToHex(value); - dprintf(fd, " %s: \"%s\"\n", property.first.c_str(), outString.c_str()); + dprintf(fd, " %s: %s\n", property.first.c_str(), outString.c_str()); value.clear(); } }