From nobody Sat Jul 25 04:55:57 2026 Received: from mail-08.mail-europe.com (mail-08.mail-europe.com [57.129.93.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20B6C1D86FF for ; Sat, 18 Jul 2026 00:42:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=57.129.93.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784335384; cv=none; b=Wg5ruC3uhMoalaFrVc4aiuEZiF4XHzGn4pQmCcU4b7weJ9SgWpocRn+7vFKG8pO68Y4PsfS/x3jXwymzZDXZCIXm407ko7FAq1xpr4akT3Wu6rA4NSnSNZ4QQI9XAikvyNCHRaQGQgMaOJ3pFogV8uywG1onBTrsmwxPU8bjo8I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784335384; c=relaxed/simple; bh=iv6s9NzDmH65gDpA7I256JI4HKad5KrPNSm6lmm7EPA=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=B9Z+oVW3pJU3ETjoKuTUgQvVHTZI9b5+S9WV3zLnftKWTkphKqdZXUsll3iwN0MONmvZcotMHywhpQyW4RRjK8Ebi3k0eT85bv1L5unFfOMUWrEgTb4fCfUBNKMnXpnJLOJf0btjCQM8uEBBmIrTZXC6h9K17mzTaBZq6wazXKY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=CxJpOXw+; arc=none smtp.client-ip=57.129.93.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="CxJpOXw+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1784335365; x=1784594565; bh=z+Z/q/R/PxaIfp4pmFwcxBfItwqmAy6PyKLIe/k4KPg=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=CxJpOXw+qnjrRYgNjYA3u+IoTf8KzuOPtqUEYn4xsQHWTNRMY6Rl2Lvk7jAoZCo7d EWx5c9y+vnn9PbkWzuIzmvrl6kn2iEiNv3emjNvJTNoKo+5xCWQqqqPmNrsY9OJqB4 T9zjSge1aJpSuq+DEr4OB0UovhopBf7dQ4xzcn8zFLwh9FLZOGeClXbcJXYOy2Z83h myuQuLFZ/yOev/LJMJsYI8a1PDInKPKO+ARGn6HYCyKOedavgMf1sXW1pztnbivN8U Og5PThZu8EUwX+USSjcjUZ1qR9lDj8qKktS0jOlEqT7UX7uqI/G878YNWP1pvatR5q KTwWM9Sb6Sy1w== Date: Sat, 18 Jul 2026 00:42:40 +0000 To: Parthiban Veerasooran , Christian Gromm , Greg Kroah-Hartman From: Nils Lehnen Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Nils Lehnen Subject: [PATCH] staging: most: video: replace pr_err with dev_err Message-ID: <20260718004223.54943-1-nils.lehnen@proton.me> Feedback-ID: 188354734:user:proton X-Pm-Message-ID: c2fd27c4d28c6a0ca2ef6edc3906be268dab81f9 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The MOST core and the already converted net component log with device context, while the video component still uses bare pr_err(), which leaves its messages without any hint of the originating interface. Both affected functions have the most_interface at hand, so log through dev_err(iface->dev, ...) exactly like drivers/most/core.c does. All English text in this patch (commit message and code comments) was translated from a German draft with the assistance of Claude Fable 5. Assisted-by: Claude:claude-fable-5 sparse Signed-off-by: Nils Lehnen --- Compile-tested only (x86, CONFIG_MOST_VIDEO=3Dm; no MOST hardware available). drivers/staging/most/video/video.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/vide= o/video.c index 78234620d48d..88892b5db28b 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -464,18 +464,18 @@ static int comp_probe_channel(struct most_interface *= iface, int channel_idx, struct most_video_dev *mdev =3D get_comp_dev(iface, channel_idx); =20 if (mdev) { - pr_err("Channel already linked\n"); + dev_err(iface->dev, "Channel already linked\n"); return -EEXIST; } =20 if (ccfg->direction !=3D MOST_CH_RX) { - pr_err("Wrong direction, expected rx\n"); + dev_err(iface->dev, "Wrong direction, expected rx\n"); return -EINVAL; } =20 if (ccfg->data_type !=3D MOST_CH_SYNC && ccfg->data_type !=3D MOST_CH_ISOC) { - pr_err("Wrong channel type, expected sync or isoc\n"); + dev_err(iface->dev, "Wrong channel type, expected sync or isoc\n"); return -EINVAL; } =20 @@ -495,7 +495,7 @@ static int comp_probe_channel(struct most_interface *if= ace, int channel_idx, strscpy(mdev->v4l2_dev.name, name, sizeof(mdev->v4l2_dev.name)); ret =3D v4l2_device_register(NULL, &mdev->v4l2_dev); if (ret) { - pr_err("v4l2_device_register() failed\n"); + dev_err(iface->dev, "v4l2_device_register() failed\n"); kfree(mdev); return ret; } @@ -521,7 +521,7 @@ static int comp_disconnect_channel(struct most_interfac= e *iface, struct most_video_dev *mdev =3D get_comp_dev(iface, channel_idx); =20 if (!mdev) { - pr_err("no such channel is linked\n"); + dev_err(iface->dev, "no such channel is linked\n"); return -ENOENT; } =20 base-commit: 64276d9bfe4d1fdd5cf2636f1065f7ea55c2defb --=20 2.43.0