linux-user: fail and report on bad dfilter specs
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 30 Aug 2019 14:36:48 +0000 (15:36 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 11 Sep 2019 06:46:05 +0000 (08:46 +0200)
Just passing NULL means we end up ignoring the bad dfilter spec
instead of reporting it and exiting as we should.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20190830143648.2967-1-alex.bennee@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/main.c

index 28f0065b6ddfed8000c3f3ebc3356a3c7794a378..c257b063dbc15ad21d5304e2325902d90c553900 100644 (file)
@@ -235,7 +235,7 @@ static void handle_arg_log(const char *arg)
 
 static void handle_arg_dfilter(const char *arg)
 {
-    qemu_set_dfilter_ranges(arg, NULL);
+    qemu_set_dfilter_ranges(arg, &error_fatal);
 }
 
 static void handle_arg_log_filename(const char *arg)