From 71ac5de5a4473d20fb11cb454f62d8e5c90f020c Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 26 Aug 2014 15:13:06 +0200 Subject: lib/intel_* Use igt checks and macros Various stuff all over. Most done with the igt.cocci spatch, but with a few fixups by hand. And add igt_core.h includes where needed. Signed-off-by: Daniel Vetter --- lib/intel_reg_map.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/intel_reg_map.c') diff --git a/lib/intel_reg_map.c b/lib/intel_reg_map.c index 402274ba..0e2ee06c 100644 --- a/lib/intel_reg_map.c +++ b/lib/intel_reg_map.c @@ -29,8 +29,10 @@ #include #include #include + #include "intel_io.h" #include "intel_chipset.h" +#include "igt_core.h" static struct intel_register_range gen_bwcl_register_map[] = { {0x00000000, 0x00000fff, INTEL_RANGE_RW}, @@ -141,9 +143,7 @@ intel_get_register_map(uint32_t devid) map.map = gen4_register_map; map.top = 0x80000; } else { - fprintf(stderr, "Gen2/3 Ranges are not supported. Please use " - "unsafe access."); - abort(); + igt_fail_on("Gen2/3 Ranges are not supported. Please use ""unsafe access."); } map.alignment_mask = 0x3; -- cgit v1.2.3