Mesa (master): aubinator: report error on unknown device id

Lionel Landwerlin llandwerlin at kemper.freedesktop.org
Wed May 24 09:54:08 UTC 2017


Module: Mesa
Branch: master
Commit: 359fa0e9a0e3b904622e91d2ce93debefb943312
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=359fa0e9a0e3b904622e91d2ce93debefb943312

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Wed May 24 02:04:34 2017 +0100

aubinator: report error on unknown device id

Since we're going to stop aubinator without a valid device id, better
report an error. This also silences a Coverity warning.

CID: 1405004
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>

---

 src/intel/tools/aubinator_error_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c
index a41292238c..636f56a336 100644
--- a/src/intel/tools/aubinator_error_decode.c
+++ b/src/intel/tools/aubinator_error_decode.c
@@ -635,7 +635,7 @@ read_data_file(FILE *file)
          if (matched == 1) {
             if (!gen_get_device_info(reg, &devinfo)) {
                printf("Unable to identify devid=%x\n", reg);
-               return;
+               exit(EXIT_FAILURE);
             }
 
             disasm = gen_disasm_create(reg);




More information about the mesa-commit mailing list