diff options
author | Simon Ser <simon.ser@intel.com> | 2019-09-13 13:23:40 +0300 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2019-09-16 14:54:24 +0300 |
commit | 8a611399226cfa248f91f80d263b84b7f13cabee (patch) | |
tree | 40a4ee2f2f04b8139f01db0e9e4436dce3c74a1b /lib/intel_batchbuffer.h | |
parent | 6ddc1a143495baa68dbc909f2a8819ec03c31c8e (diff) |
lib/igt_eld: fix eld_is_supported failing if not supported
When glob(3) doesn't find any results, it returns GLOB_NOMATCH. I've been
confused by GLOB_NOCHECK's description and thought it would return 0.
Instead of failing on the assert, return that ELDs aren't supported in case
there's no match.
While at it, also include glob's return value in the assert message.
Signed-off-by: Simon Ser <simon.ser@intel.com>
Fixes: 3374cd0b048f ("lib/igt_eld: introduce eld_is_supported")
Cc: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/intel_batchbuffer.h')
0 files changed, 0 insertions, 0 deletions