diff --git a/drivers/soc/qcom/spcom.c b/drivers/soc/qcom/spcom.c index a41e27125c8e..27912fcf4cc2 100644 --- a/drivers/soc/qcom/spcom.c +++ b/drivers/soc/qcom/spcom.c @@ -1941,7 +1941,8 @@ static inline int handle_poll(struct file *file, mutex_unlock(&ch->lock); break; default: - spcom_pr_err("ch [%s] unsupported ioctl:%u\n", op->cmd_id); + spcom_pr_err("ch [%s] unsupported ioctl:%u\n", + name, op->cmd_id); ret = -EINVAL; } spcom_pr_dbg("name=%s, retval=%d\n", name, op->retval);