diff --git a/drivers/soc/qcom/spcom.c b/drivers/soc/qcom/spcom.c index 8a9d08f90f02..09d5274f186c 100644 --- a/drivers/soc/qcom/spcom.c +++ b/drivers/soc/qcom/spcom.c @@ -1920,7 +1920,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);