mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
msm: ipa3: Fix format specifier warnings
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
parent
5dfb4c343b
commit
df74fdf7d0
@ -866,10 +866,10 @@ int ipa3_xdci_start(u32 clnt_hdl, u8 xferrscidx, bool xferrscidx_valid)
|
||||
gsi_res = gsi_enable_flow_control_ee(ep->gsi_chan_hdl, 0,
|
||||
&code);
|
||||
if (gsi_res == GSI_STATUS_SUCCESS) {
|
||||
IPADBG("flow control sussess gsi ch %d with code %d\n",
|
||||
IPADBG("flow control sussess gsi ch %lu with code %d\n",
|
||||
ep->gsi_chan_hdl, code);
|
||||
} else {
|
||||
IPADBG("failed to flow control gsi ch %d code %d\n",
|
||||
IPADBG("failed to flow control gsi ch %lu code %d\n",
|
||||
ep->gsi_chan_hdl, code);
|
||||
}
|
||||
}
|
||||
@ -1307,10 +1307,10 @@ int ipa3_start_stop_client_prod_gsi_chnl(enum ipa_client_type client,
|
||||
result = gsi_enable_flow_control_ee(ep->gsi_chan_hdl,
|
||||
0, &code);
|
||||
if (result == GSI_STATUS_SUCCESS) {
|
||||
IPADBG("flow control sussess ch %d code %d\n",
|
||||
IPADBG("flow control sussess ch %lu code %d\n",
|
||||
ep->gsi_chan_hdl, code);
|
||||
} else {
|
||||
IPADBG("failed to flow control ch %d code %d\n",
|
||||
IPADBG("failed to flow control ch %lu code %d\n",
|
||||
ep->gsi_chan_hdl, code);
|
||||
}
|
||||
} else
|
||||
|
@ -434,10 +434,10 @@ static int ipa_mhi_start_gsi_channel(enum ipa_client_type client,
|
||||
!ipa3_is_mhip_offload_enabled()) {
|
||||
res = gsi_enable_flow_control_ee(ep->gsi_chan_hdl, 0, &code);
|
||||
if (res == GSI_STATUS_SUCCESS) {
|
||||
IPA_MHI_DBG("flow ctrl sussess gsi ch %d code %d\n",
|
||||
IPA_MHI_DBG("flow ctrl sussess gsi ch %lu code %d\n",
|
||||
ep->gsi_chan_hdl, code);
|
||||
} else {
|
||||
IPA_MHI_DBG("failed to flow ctrll gsi ch %d code %d\n",
|
||||
IPA_MHI_DBG("failed to flow ctrll gsi ch %lu code %d\n",
|
||||
ep->gsi_chan_hdl, code);
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ static int ipa3_nat_ipv6ct_mmap(
|
||||
if (dev->phys_mem_size == 0 ||
|
||||
dev->phys_mem_size > vsize) {
|
||||
IPAERR_RL(
|
||||
"%s err vsize(0x%X) phys_mem_size(0x%X)\n",
|
||||
"%s err vsize(0x%lX) phys_mem_size(0x%X)\n",
|
||||
dev->name, vsize, dev->phys_mem_size);
|
||||
result = -EINVAL;
|
||||
goto unlock;
|
||||
@ -205,7 +205,7 @@ static int ipa3_nat_ipv6ct_mmap(
|
||||
|
||||
if (nmi == IPA_NAT_MEM_IN_DDR) {
|
||||
|
||||
IPADBG("map sz=0x%zx -> vma size=0x%08x\n",
|
||||
IPADBG("map sz=0x%zx -> vma size=0x%08lx\n",
|
||||
mld_ptr->table_alloc_size,
|
||||
vsize);
|
||||
|
||||
@ -228,7 +228,7 @@ static int ipa3_nat_ipv6ct_mmap(
|
||||
|
||||
} else { /* nmi == IPA_NAT_MEM_IN_SRAM */
|
||||
|
||||
IPADBG("map phys_mem_size(0x%08X) -> vma sz(0x%08X)\n",
|
||||
IPADBG("map phys_mem_size(0x%08X) -> vma sz(0x%08lX)\n",
|
||||
dev->phys_mem_size, vsize);
|
||||
|
||||
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
|
||||
@ -269,7 +269,7 @@ static int ipa3_nat_ipv6ct_mmap(
|
||||
IPADBG("Mapping V6 CT: %s\n",
|
||||
ipa3_nat_mem_in_as_str(IPA_NAT_MEM_IN_DDR));
|
||||
|
||||
IPADBG("map sz=0x%zx -> vma size=0x%08x\n",
|
||||
IPADBG("map sz=0x%zx -> vma size=0x%08lx\n",
|
||||
dev->table_alloc_size,
|
||||
vsize);
|
||||
|
||||
@ -593,7 +593,7 @@ static int ipa3_nat_ipv6ct_allocate_mem(
|
||||
/*
|
||||
* CAN fit in SRAM, hence we'll use SRAM...
|
||||
*/
|
||||
IPADBG("V4 NAT with size 0x%08X will reside in: %s\n",
|
||||
IPADBG("V4 NAT with size 0x%08lX will reside in: %s\n",
|
||||
table_alloc->size,
|
||||
ipa3_nat_mem_in_as_str(IPA_NAT_MEM_IN_SRAM));
|
||||
|
||||
@ -636,7 +636,7 @@ static int ipa3_nat_ipv6ct_allocate_mem(
|
||||
/*
|
||||
* CAN NOT fit in SRAM, hence we'll allocate DDR...
|
||||
*/
|
||||
IPADBG("V4 NAT with size 0x%08X will reside in: %s\n",
|
||||
IPADBG("V4 NAT with size 0x%08lX will reside in: %s\n",
|
||||
table_alloc->size,
|
||||
ipa3_nat_mem_in_as_str(IPA_NAT_MEM_IN_DDR));
|
||||
|
||||
@ -669,7 +669,7 @@ static int ipa3_nat_ipv6ct_allocate_mem(
|
||||
} else {
|
||||
if (nat_type == IPAHAL_NAT_IPV6CT) {
|
||||
|
||||
IPADBG("V6 CT with size 0x%08X will reside in: %s\n",
|
||||
IPADBG("V6 CT with size 0x%08lX will reside in: %s\n",
|
||||
table_alloc->size,
|
||||
ipa3_nat_mem_in_as_str(IPA_NAT_MEM_IN_DDR));
|
||||
|
||||
@ -740,7 +740,7 @@ int ipa3_allocate_nat_table(
|
||||
|
||||
int result;
|
||||
|
||||
IPADBG("table size:%u offset:%u\n",
|
||||
IPADBG("table size:%lu offset:%ld\n",
|
||||
table_alloc->size, table_alloc->offset);
|
||||
|
||||
mutex_lock(&nm_ptr->dev.lock);
|
||||
@ -988,7 +988,8 @@ static inline bool chk_sram_offset_alignment(
|
||||
u32 mask)
|
||||
{
|
||||
if (addr & (uintptr_t) mask) {
|
||||
IPAERR("sram addr(%pK) is not properly aligned\n", addr);
|
||||
IPAERR("sram addr(%pK) is not properly aligned\n",
|
||||
(void *)addr);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -1207,7 +1207,7 @@ static void __ipa_convert_rt_rule_in(struct ipa_rt_rule rule_in,
|
||||
{
|
||||
if (unlikely(sizeof(struct ipa_rt_rule) >
|
||||
sizeof(struct ipa_rt_rule_i))) {
|
||||
IPAERR_RL("invalid size in: %d size out: %d\n",
|
||||
IPAERR_RL("invalid size in: %lu size out: %lu\n",
|
||||
sizeof(struct ipa_rt_rule),
|
||||
sizeof(struct ipa_rt_rule_i));
|
||||
return;
|
||||
@ -1221,7 +1221,7 @@ static void __ipa_convert_rt_rule_out(struct ipa_rt_rule_i rule_in,
|
||||
{
|
||||
if (unlikely(sizeof(struct ipa_rt_rule) >
|
||||
sizeof(struct ipa_rt_rule_i))) {
|
||||
IPAERR_RL("invalid size in:%d size out:%d\n",
|
||||
IPAERR_RL("invalid size in:%lu size out:%lu\n",
|
||||
sizeof(struct ipa_rt_rule),
|
||||
sizeof(struct ipa_rt_rule_i));
|
||||
return;
|
||||
@ -1235,7 +1235,7 @@ static void __ipa_convert_rt_mdfy_in(struct ipa_rt_rule_mdfy rule_in,
|
||||
{
|
||||
if (unlikely(sizeof(struct ipa_rt_rule_mdfy) >
|
||||
sizeof(struct ipa_rt_rule_mdfy_i))) {
|
||||
IPAERR_RL("invalid size in:%d size out:%d\n",
|
||||
IPAERR_RL("invalid size in:%lu size out:%lu\n",
|
||||
sizeof(struct ipa_rt_rule_mdfy),
|
||||
sizeof(struct ipa_rt_rule_mdfy_i));
|
||||
return;
|
||||
@ -1252,7 +1252,7 @@ static void __ipa_convert_rt_mdfy_out(struct ipa_rt_rule_mdfy_i rule_in,
|
||||
{
|
||||
if (unlikely(sizeof(struct ipa_rt_rule_mdfy) >
|
||||
sizeof(struct ipa_rt_rule_mdfy_i))) {
|
||||
IPAERR_RL("invalid size in:%d size out:%d\n",
|
||||
IPAERR_RL("invalid size in:%lu size out:%lu\n",
|
||||
sizeof(struct ipa_rt_rule_mdfy),
|
||||
sizeof(struct ipa_rt_rule_mdfy_i));
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user