diff options
author | Stephen Hines <srhines@google.com> | 2020-08-20 18:57:07 -0700 |
---|---|---|
committer | LuK1337 <priv.luk@gmail.com> | 2022-01-25 20:20:20 +0100 |
commit | 9fcc98477c142ef90599358b83739c550ad58f51 (patch) | |
tree | 883bee6051317dcda0334023e94c5d65439d42f0 | |
parent | 5bb239dd3480149a1e4c45e754a349311a370564 (diff) |
Fix -Wformat errors with explicit void* -> char* cast.
hardware/qcom/sm7250/display/sde-drm/drm_plane.cpp:439:12: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
blob->data, blob->length);
^~~~~~~~~~
hardware/qcom/sm7250/display/sde-drm/drm_connector.cpp:497:12: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
blob->data, blob->length);
^~~~~~~~~~
hardware/qcom/sm7250/display/sde-drm/drm_connector.cpp:580:12: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
blob->data, blob->length);
^~~~~~~~~~
hardware/qcom/sm7250/display/sde-drm/drm_crtc.cpp:308:12: error: format specifies type 'char *' but the argument has type 'void *' [-Werror,-Wformat]
blob->data, blob->length);
^~~~~~~~~~
Bug: http://b/155835175
Bug: http://b/169166735
Test: m
Change-Id: I73ae1f5f4bccedd2e19f865bd1122a09de00aa76
-rw-r--r-- | sde-drm/drm_connector.cpp | 4 | ||||
-rw-r--r-- | sde-drm/drm_crtc.cpp | 2 | ||||
-rw-r--r-- | sde-drm/drm_plane.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sde-drm/drm_connector.cpp b/sde-drm/drm_connector.cpp index 4e8d5653..6323c80f 100644 --- a/sde-drm/drm_connector.cpp +++ b/sde-drm/drm_connector.cpp @@ -502,7 +502,7 @@ void DRMConnector::ParseCapabilities(uint64_t blob_id, DRMConnectorInfo *info) { fmt_str[blob->length] = '\0'; stringstream stream(fmt_str); DRM_LOGI("stream str %s len %zu blob str %s len %d", stream.str().c_str(), stream.str().length(), - blob->data, blob->length); + static_cast<const char *>(blob->data), blob->length); string line = {}; const string display_type = "display type="; const string panel_name = "panel name="; @@ -590,7 +590,7 @@ void DRMConnector::ParseModeProperties(uint64_t blob_id, DRMConnectorInfo *info) fmt_str[blob->length] = '\0'; stringstream stream(fmt_str); DRM_LOGI("stream str %s len %zu blob str %s len %d", stream.str().c_str(), stream.str().length(), - blob->data, blob->length); + static_cast<const char *>(blob->data), blob->length); string line = {}; const string mode_name = "mode_name="; diff --git a/sde-drm/drm_crtc.cpp b/sde-drm/drm_crtc.cpp index a161f50b..d79d750b 100644 --- a/sde-drm/drm_crtc.cpp +++ b/sde-drm/drm_crtc.cpp @@ -328,7 +328,7 @@ void DRMCrtc::ParseCapabilities(uint64_t blob_id) { fmt_str[blob->length] = '\0'; stringstream stream(fmt_str); DRM_LOGI("stream str %s len %zu blob str %s len %d", stream.str().c_str(), stream.str().length(), - blob->data, blob->length); + static_cast<const char *>(blob->data), blob->length); string line = {}; string max_blendstages = "max_blendstages="; string qseed_type = "qseed_type="; diff --git a/sde-drm/drm_plane.cpp b/sde-drm/drm_plane.cpp index eb583435..9da1033f 100644 --- a/sde-drm/drm_plane.cpp +++ b/sde-drm/drm_plane.cpp @@ -452,7 +452,7 @@ void DRMPlane::GetTypeInfo(const PropertyMap &prop_map) { // like formats etc stringstream stream(fmt_str); DRM_LOGI("stream str %s len %zu blob str %s len %d", stream.str().c_str(), stream.str().length(), - blob->data, blob->length); + static_cast<const char *>(blob->data), blob->length); string line = {}; string pixel_formats = "pixel_formats="; |