Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 930f0a4b authored by Rama Krishna Phani A's avatar Rama Krishna Phani A Committed by Gerrit - the friendly Code Review server
Browse files

msm: mhi_dev: update format specifiers



Update proper format specifiers for variables.

Change-Id: I078c14b6dda2e60428a79f60799ee17c1975c51b
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent f5c511be
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -1969,8 +1969,8 @@ int mhi_dev_read_channel(struct mhi_req *mreq)
	size_t bytes_to_read, addr_offset;
	uint64_t read_from_loc;
	ssize_t bytes_read = 0;
	uint32_t write_to_loc = 0;
	size_t usr_buf_remaining;
	size_t write_to_loc = 0;
	uint32_t usr_buf_remaining;
	int td_done = 0, rc = 0;
	struct mhi_dev_client *handle_client;

@@ -2110,8 +2110,8 @@ int mhi_dev_write_channel(struct mhi_req *wreq)
	enum mhi_dev_cmd_completion_code code = MHI_CMD_COMPL_CODE_INVALID;
	int rc = 0;
	uint64_t skip_tres = 0, write_to_loc;
	uint32_t read_from_loc;
	size_t usr_buf_remaining;
	size_t read_from_loc;
	uint32_t usr_buf_remaining;
	size_t usr_buf_offset = 0;
	size_t bytes_to_write = 0;
	size_t bytes_written = 0;
@@ -2442,7 +2442,10 @@ int mhi_ctrl_state_info(uint32_t idx, uint32_t *info)
	if (idx == MHI_DEV_UEVENT_CTRL)
		*info = mhi_ctx->ctrl_info;
	else
		if (idx < MHI_MAX_CHANNELS)
			*info = channel_state_info[idx].ctrl_info;
		else
			return -EINVAL;

	mhi_log(MHI_MSG_VERBOSE, "idx:%d, ctrl:%d", idx, *info);

+14 −7
Original line number Diff line number Diff line
@@ -738,8 +738,15 @@ static int mhi_uci_client_open(struct inode *mhi_inode,
	struct uci_client *uci_handle;
	int rc = 0;

	rc = iminor(mhi_inode);
	if (rc < MHI_SOFTWARE_CLIENT_LIMIT) {
		uci_handle =
			&uci_ctxt.client_handles[iminor(mhi_inode)];
	} else {
		uci_log(UCI_DBG_DBG,
		"Cannot open struct device node 0x%x\n", iminor(mhi_inode));
		return -EINVAL;
	}

	uci_log(UCI_DBG_DBG,
		"Client opened struct device node 0x%x, ref count 0x%x\n",
@@ -977,7 +984,7 @@ static ssize_t mhi_uci_client_read(struct file *file, char __user *ubuf,
			/* A valid packet was returned from MHI */
		} else if (bytes_avail > 0) {
			uci_log(UCI_DBG_VERBOSE,
				"Got packet: avail pkts %d phy_adr %p, ch %d\n",
				"Got packet: avail pkts %d phy_adr %pK, ch %d\n",
				atomic_read(&uci_handle->read_data_ready),
				ureq.buf,
				ureq.chan);
@@ -988,7 +995,7 @@ static ssize_t mhi_uci_client_read(struct file *file, char __user *ubuf,
			 */
		} else {
			uci_log(UCI_DBG_CRITICAL,
				"chan %d err: avail pkts %d phy_adr %p",
				"chan %d err: avail pkts %d phy_adr %pK",
				ureq.chan,
				atomic_read(&uci_handle->read_data_ready),
				ureq.buf);
@@ -1025,7 +1032,7 @@ static ssize_t mhi_uci_client_read(struct file *file, char __user *ubuf,
	/* We finished with this buffer, map it back */
	if (*bytes_pending == 0) {
		uci_log(UCI_DBG_VERBOSE,
				"All data consumed. Pkt loc %p ,chan %d\n",
				"All data consumed. Pkt loc %pK ,chan %d\n",
				uci_handle->pkt_loc, ureq.chan);
		uci_handle->pkt_loc = 0;
		uci_handle->pkt_size = 0;
@@ -1216,7 +1223,7 @@ static const struct file_operations mhi_uci_client_fops = {

static int uci_device_create(struct uci_client *client)
{
	int r;
	unsigned long r;
	int n;
	ssize_t dst_size;
	unsigned int client_index;
@@ -1324,7 +1331,7 @@ int mhi_uci_init(void)
	u32 i = 0;
	int ret_val = 0;
	struct uci_client *mhi_client = NULL;
	s32 r = 0;
	unsigned long r = 0;

	mhi_uci_ipc_log = ipc_log_context_create(MHI_UCI_IPC_LOG_PAGES,
						"mhi-uci", 0);