Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix -Wformat errors with explicit void* -> char* cast. #2

Open
wants to merge 1 commit into
base: arrow-12.0-caf-sm8350
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sde-drm/drm_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,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=";
Expand Down Expand Up @@ -588,7 +588,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=";
Expand Down
2 changes: 1 addition & 1 deletion sde-drm/drm_crtc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,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=";
Expand Down
2 changes: 1 addition & 1 deletion sde-drm/drm_plane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,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=";
Expand Down