Commit 1de6763b authored by Mukesh Ogare's avatar Mukesh Ogare Committed by Alex Deucher
Browse files

drm/radeon: convert VCE logging to drm_* helpers



Replace legacy DRM_INFO() logging in the VCE code with drm_info()
helper that takes a struct drm_device.

This provides proper device context in dmesg on multi-GPU systems and
aligns the radeon driver with current DRM logging practices.

Note that this change logs firmware version information at info level
and does not indicate a failure.

Signed-off-by: default avatarMukesh Ogare <mukeshogare871@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e924c700
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -121,7 +121,8 @@ int radeon_vce_init(struct radeon_device *rdev)
	if (sscanf(c, "%2u]", &rdev->vce.fb_version) != 1)
		return -EINVAL;

	DRM_INFO("Found VCE firmware/feedback version %d.%d.%d / %d!\n",
	drm_info(&rdev->ddev,
			"Found VCE firmware/feedback version %d.%d.%d / %d!\n",
			start, mid, end, rdev->vce.fb_version);

	rdev->vce.fw_version = (start << 24) | (mid << 16) | (end << 8);