soc: qcom: glink_ssr: Fix format specifier to be arch-independent
Some error messages in the glink_ssr driver use the %zu format specifier to handle the result of the PTR_ERR macro. This causes compilation failures on 32-bit targets. Cast the result of PTR_ERR to an int and use the %d format specifier instead to fix the error. Change-Id: I9d4effefc50e83d4f3abefd49a30e5df44df1ef9 Signed-off-by: Steven Cahail <scahail@codeaurora.org>
This commit is contained in:
parent
ca30ac4203
commit
29b0e28d2a
|
@ -274,9 +274,9 @@ void close_ch_worker(struct work_struct *work)
|
|||
NULL);
|
||||
|
||||
if (IS_ERR_OR_NULL(link_state_handle))
|
||||
GLINK_ERR("<SSR> %s: %s, ret[%zu]\n", __func__,
|
||||
GLINK_ERR("<SSR> %s: %s, ret[%d]\n", __func__,
|
||||
"Couldn't register link state cb",
|
||||
PTR_ERR(link_state_handle));
|
||||
(int)PTR_ERR(link_state_handle));
|
||||
else
|
||||
ss_info->link_state_handle = link_state_handle;
|
||||
|
||||
|
@ -594,9 +594,9 @@ static int configure_and_open_channel(struct subsys_info *ss_info)
|
|||
|
||||
handle = glink_open(&open_cfg);
|
||||
if (IS_ERR_OR_NULL(handle)) {
|
||||
GLINK_ERR("<SSR> %s:%s %s: unable to open channel, ret[%zu]\n",
|
||||
GLINK_ERR("<SSR> %s:%s %s: unable to open channel, ret[%d]\n",
|
||||
open_cfg.edge, open_cfg.name, __func__,
|
||||
PTR_ERR(handle));
|
||||
(int)PTR_ERR(handle));
|
||||
kfree(cb_data);
|
||||
cb_data = NULL;
|
||||
ss_info->cb_data = NULL;
|
||||
|
|
Loading…
Reference in New Issue