From patchwork Tue Sep 10 16:35:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 1160482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46SW4B6XxDz9s7T for ; Wed, 11 Sep 2019 02:40:42 +1000 (AEST) Received: from localhost ([::1]:42955 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7jC4-00004u-6k for incoming@patchwork.ozlabs.org; Tue, 10 Sep 2019 12:40:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53126) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7j7r-0004X1-J1 for qemu-devel@nongnu.org; Tue, 10 Sep 2019 12:36:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7j7q-00021s-JD for qemu-devel@nongnu.org; Tue, 10 Sep 2019 12:36:19 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:48125) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i7j7q-00021B-AU for qemu-devel@nongnu.org; Tue, 10 Sep 2019 12:36:18 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MsqIi-1iRKL50RYW-00tAs1; Tue, 10 Sep 2019 18:36:11 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Tue, 10 Sep 2019 18:35:49 +0200 Message-Id: <20190910163600.19971-5-laurent@vivier.eu> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190910163600.19971-1-laurent@vivier.eu> References: <20190910163600.19971-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:Snl31syHCaRUwPZeR5XWR6Csa5PyqsiRk6pbWTvrU2g9jMoikBf Yh7q/CyPLwmmJXTQ6L0N3tMIVEAktqdNuo9qbvj4tGNXPnj5oDAe4vPsPmiz4rVutI4X1tT 4O+iil0yIhC5B2F+BL5RrpdTp86neml/SZWBueax5nExFhsMSclMV2KfUopxE1eWCapaKpt 9SC+OFyTzHaJO8r4cAYeg== X-UI-Out-Filterresults: notjunk:1; V03:K0:aswRB7F3vmY=:ZIV49uQwCuIrOMSeDbp618 2GpOMkCf2+dHx6H1++YrgDF504Y6iiVnWyMZ7PFEKbQuAHQ0wVELVADa0EXAvLf92kgscsy/m CF5ddfI3378gNfSVI4P1dZ1og3zidRBh5N3Q1aQIT9pBS+/chiC6B7NCx/wk1IT2JpVT6n3xS QT6iGslUP4+YbJXmzQcOUWY/99jkTbHrzdg7sfQFDt0wUvfcYdgjGtifjDql/BAUQPaQbjjRB ktoehj2hwfRq6GXWdOvZqpAp8vDBrfEUKIwd7dTirw3LKppxmThLjCzkGhszsl9lPaScUMIO5 6lPtzgsYSAreSi5ANXs8QhmIItz1oL22eAYesMab6zY/r6sFLNB/dAY+zFybQK9vQtGBkm5eG ik7jiqSWAbPMTKqr/f/5vswQZchK0n7SupjX3uEfkH5OslovbY9jDYKfjYASr0B2Hkx7xzZVb 9tiJQyR1ZutNR/YQxsKz9zHPz2x9anzFrsfoRDuqXVPJOg5FZkS34ESBfNBTdjkFHWOT2YVf8 vcvr5ZHfL8X2bp+MgWQmYECVK8OPkrZgI9XMFNGdUWc47Xvh5ix+Bg1Ls6G14454z2yQcfOwq oCDSDiahYezGzd0LqARYgLfeYyDesoQmDYP4FLIvUZlYZ1pKrxyz+CbP+36X5gudi8lvwvNye AN75ec+dfjNbTAVXJoCTxz5trpMutvC+GJFM5LitWNgXi86oO5EudEQXmKDfJ8hnFp/COZbLj KOFmBBXpiXz/fcskrLWyuKcjqImwtAA5Wg+4OjZR+SThWgDRhoHDlBFGGXFI+lUQ7Ri55Kntp dghiev9OxkKESTHb/9k/lwUuXXtMWA+TT81u+iIN3cvDTb5M4Q= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.133 Subject: [Qemu-devel] [PULL 04/15] linux-user: fail and report on bad dfilter specs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Max Filippov , Riku Voipio , =?utf-8?q?Alex_Benn=C3=A9e?= , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Alex Bennée 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 Reviewed-by: Laurent Vivier Message-Id: <20190830143648.2967-1-alex.bennee@linaro.org> Signed-off-by: Laurent Vivier --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index 28f0065b6ddf..c257b063dbc1 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -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)