More specific libdrm error message

Xie, AlexBin AlexBin.Xie at amd.com
Wed Jan 11 21:49:49 UTC 2017


Hi,


v2: Use strerror instead of %m. %m is a GNU C Library extension.

Thanks,

Alex Bin Xie

________________________________
From: Xie, AlexBin
Sent: Wednesday, January 11, 2017 4:14 PM
To: amd-gfx at lists.freedesktop.org
Subject: More specific libdrm error message

Hi,

Provide more specific error message if non-privileged user runs amdgpu_test

Before this change, the error message is:" WARNING - Suite initialization failed..." People might think this is a driver problem.


Tested with non-privileged user. Now the error message is like.

...
Error:Permission denied. Hint: Try to run this test program as root.
WARNING - Suite initialization failed for 'Basic Tests'.

...



Tested as root with no regression.



Please review.


Thanks,

Alex Bin Xie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20170111/53c829b2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-amdgpu-Provide-more-specific-error-message-if-non-pr.patch
Type: text/x-patch
Size: 3038 bytes
Desc: 0001-amdgpu-Provide-more-specific-error-message-if-non-pr.patch
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20170111/53c829b2/attachment.bin>


More information about the amd-gfx mailing list