radeon, amdgpu: allow for symbolic errno output when reporting drm_edid_to_sad errors
Subsystems (3)
PATCH 1/1 radeon, amdgpu: allow for symbolic errno output when reporting drm_edid_to_sad errors
This fixes some kernel log text when CONFIG_SYMBOLIC_ERRNAMES=Y.
Signed-off-by Darren Salt <[email protected]>
drivers/gpu/drm/radeon/radeon_audio.c +1 -1
@@ -368,7 +368,7 @@ sad_count =drm_edid_to_sad (radeon_connector_edid (connector), &sads);if (sad_count <0 ) -DRM_ERROR ("Couldn't read SADs: %d\n" , sad_count); +DRM_ERROR ("Couldn't read SADs: %pe\n" ,ERR_PTR (sad_count));if (sad_count <=0 )return ;BUG_ON (!sads);
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c +1 -1
@@ -1324,7 +1324,7 @@ sad_count =drm_edid_to_sad (amdgpu_connector_edid (connector), &sads);if (sad_count <0 ) -DRM_ERROR ("Couldn't read SADs: %d\n" , sad_count); +DRM_ERROR ("Couldn't read SADs: %pe\n" ,ERR_PTR (sad_count));if (sad_count <=0 )return ;BUG_ON (!sads);
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c +1 -1
@@ -1275,7 +1275,7 @@ sad_count =drm_edid_to_sad (amdgpu_connector_edid (connector), &sads);if (sad_count <0 ) -DRM_ERROR ("Couldn't read SADs: %d\n" , sad_count); +DRM_ERROR ("Couldn't read SADs: %pe\n" ,ERR_PTR (sad_count));if (sad_count <=0 )return ;
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c +1 -1
@@ -1371,7 +1371,7 @@ sad_count =drm_edid_to_sad (amdgpu_connector_edid (connector), &sads);if (sad_count <0 ) -DRM_ERROR ("Couldn't read SADs: %d\n" , sad_count); +DRM_ERROR ("Couldn't read SADs: %pe\n" ,ERR_PTR (sad_count));if (sad_count <=0 )return ;BUG_ON (!sads);
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c +1 -1
@@ -1397,7 +1397,7 @@ sad_count =drm_edid_to_sad (amdgpu_connector_edid (connector), &sads);if (sad_count <0 ) -DRM_ERROR ("Couldn't read SADs: %d\n" , sad_count); +DRM_ERROR ("Couldn't read SADs: %pe\n" ,ERR_PTR (sad_count));if (sad_count <=0 )return ;BUG_ON (!sads);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +1 -1
@@ -98,7 +98,7 @@ sad_count =drm_edid_to_sad ((struct edid *) edid->raw_edid, &sads);if (sad_count <0 ) -DRM_ERROR ("Couldn't read SADs: %d\n" , sad_count); +DRM_ERROR ("Couldn't read SADs: %pe\n" ,ERR_PTR (sad_count));if (sad_count <=0 )return result;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Please send a proper patch using git format-patch.
Thanks!
Alex
Quoted 8 lines · Darren Salt
This fixes some kernel log text when
CONFIG_SYMBOLIC_ERRNAMES=Y.Signed-off-by Darren Salt <[email protected]>_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx