Skip to content

Commit 2ab6590

Browse files
committed
drm/edid/firmware: convert to drm device specific logging
Conform to device specific logging. v2: Include [CONNECTOR:%d:%s] (Ville) Signed-off-by: Jani Nikula <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/14f3a1e55729c9157aae93fc45320d05cc4cc7bc.1666614699.git.jani.nikula@intel.com
1 parent 5f2d0ed commit 2ab6590

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

drivers/gpu/drm/drm_edid_load.c

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,20 @@ static const struct drm_edid *edid_load(struct drm_connector *connector, const c
177177

178178
pdev = platform_device_register_simple(connector->name, -1, NULL, 0);
179179
if (IS_ERR(pdev)) {
180-
DRM_ERROR("Failed to register EDID firmware platform device "
181-
"for connector \"%s\"\n", connector->name);
180+
drm_err(connector->dev,
181+
"[CONNECTOR:%d:%s] Failed to register EDID firmware platform device for connector \"%s\"\n",
182+
connector->base.id, connector->name,
183+
connector->name);
182184
return ERR_CAST(pdev);
183185
}
184186

185187
err = request_firmware(&fw, name, &pdev->dev);
186188
platform_device_unregister(pdev);
187189
if (err) {
188-
DRM_ERROR("Requesting EDID firmware \"%s\" failed (err=%d)\n",
189-
name, err);
190+
drm_err(connector->dev,
191+
"[CONNECTOR:%d:%s] Requesting EDID firmware \"%s\" failed (err=%d)\n",
192+
connector->base.id, connector->name,
193+
name, err);
190194
return ERR_PTR(err);
191195
}
192196

0 commit comments

Comments
 (0)