diff --git a/drivers/soc/qcom/smp2p.c b/drivers/soc/qcom/smp2p.c index 7c5a7c6fd782..98035a7681f5 100644 --- a/drivers/soc/qcom/smp2p.c +++ b/drivers/soc/qcom/smp2p.c @@ -205,7 +205,8 @@ static void qcom_smp2p_do_ssr_ack(struct qcom_smp2p *smp2p) u32 ack; u32 val; - smp2p->ssr_ack = ack = !smp2p->ssr_ack; + ack = !smp2p->ssr_ack; + smp2p->ssr_ack = ack; ack = ack << SMP2P_FLAGS_RESTART_ACK_BIT; val = out->flags & ~BIT(SMP2P_FLAGS_RESTART_ACK_BIT); @@ -272,7 +273,7 @@ static void qcom_smp2p_notify_in(struct qcom_smp2p *smp2p) if (!status) continue; - SMP2P_INFO("%d: %s: status:%0x val:%0x\n", + SMP2P_INFO("%d: %s: status:%0lx val:%0x\n", smp2p->remote_pid, entry->name, status, val); for_each_set_bit(i, &status, 32) {