mm-drivers: fix prink argument errors
This change fixes printk arguments in mm-drivers which is found with additional compilation flags and add compile flags too. Change-Id: Ic83f044467dca6d391221182096b9c50b7da36de Signed-off-by: Nilaan Gunabalachandran <quic_ngunabal@quicinc.com>
This commit is contained in:
@@ -18,3 +18,5 @@ msm_hw_fence-$(CONFIG_DEBUG_FS) += src/hw_fence_ioctl.o
|
||||
|
||||
CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
|
||||
endif
|
||||
EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \
|
||||
-Wformat-invalid-specifier -Wformat-zero-length -Wnonnull
|
@@ -500,7 +500,8 @@ static int dump_single_entry(struct hw_fence_driver_data *drv_data, char *buf, u
|
||||
|
||||
hw_fence = msm_hw_fence_find(drv_data, NULL, context, seqno, &hash);
|
||||
if (!hw_fence) {
|
||||
HWFNC_ERR("no valid hfence found for context:%lu seqno:%lu", context, seqno, hash);
|
||||
HWFNC_ERR("no valid hfence found for context:%lu seqno:%lu hash:%lu",
|
||||
context, seqno, hash);
|
||||
len = scnprintf(buf + len, max_size - len,
|
||||
"no valid hfence found for context:%lu seqno:%lu hash:%lu\n",
|
||||
context, seqno, hash);
|
||||
|
@@ -310,7 +310,7 @@ int hw_fence_update_queue(struct hw_fence_driver_data *drv_data,
|
||||
/* calculate the index after the write */
|
||||
to_write_idx = write_idx + payload_size_u32;
|
||||
|
||||
HWFNC_DBG_Q("to_write_idx:%d write_idx:%d payload_size\n", to_write_idx, write_idx,
|
||||
HWFNC_DBG_Q("to_write_idx:%d write_idx:%d payload_size:%u\n", to_write_idx, write_idx,
|
||||
payload_size_u32);
|
||||
HWFNC_DBG_L("client_id:%d update %s hash:%llu ctx_id:%llu seqno:%llu flags:%llu error:%u\n",
|
||||
hw_fence_client->client_id, _get_queue_type(queue_type),
|
||||
|
@@ -8,3 +8,5 @@ obj-m += msm_ext_display.o
|
||||
msm_ext_display-y := src/msm_ext_display.o
|
||||
|
||||
CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
|
||||
EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \
|
||||
-Wformat-invalid-specifier -Wformat-zero-length -Wnonnull
|
@@ -12,3 +12,5 @@ sync_fence-y := src/qcom_sync_file.o
|
||||
|
||||
CDEFINES += -DBUILD_TIMESTAMP=\"$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')\"
|
||||
endif
|
||||
EXTRA_CFLAGS += -Wformat-extra-args -Wstrict-prototypes -Wformat-insufficient-args \
|
||||
-Wformat-invalid-specifier -Wformat-zero-length -Wnonnull
|
||||
|
Reference in New Issue
Block a user