summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-02-02 19:13:57 +0200
committerDave Airlie <airlied@redhat.com>2015-02-03 11:13:27 +1000
commite4bf44b3b558742fb7c58b4d34e206c8942f07e6 (patch)
tree0513ea8ed619b63ba4e9ace7d60a8e2d3655e724 /drivers/gpu/drm/amd
parentdb88c8f4e7e1d1c9e82bc5645a537782b8836cc0 (diff)
downloadtalos-op-linux-e4bf44b3b558742fb7c58b4d34e206c8942f07e6.tar.gz
talos-op-linux-e4bf44b3b558742fb7c58b4d34e206c8942f07e6.zip
drm/modes: Print the mode status in human readable form
Currently when a mode is rejected the reason is printed as a raw number. Having to manually decode that to a enum drm_mode_status value is tiresome. Have the code do the decoding instead and print the result in a human readable format. Just having an array of strings indexed with the mode status doesn't work since the enum includes negative values. So we offset the status by +3 which makes all the indexes non-negative. Also add a bit of paranoia into the code to catch out of bounds accesses in case someone adds more enum values but forgets to update the code. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud