From patchwork Thu Feb 16 14:31:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: oscar.mateo@intel.com X-Patchwork-Id: 9578477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0D32360244 for ; Thu, 16 Feb 2017 22:31:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBD062868B for ; Thu, 16 Feb 2017 22:31:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD3192868D; Thu, 16 Feb 2017 22:31:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00, DATE_IN_PAST_06_12, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7FEEA2868B for ; Thu, 16 Feb 2017 22:31:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 40F246EC20; Thu, 16 Feb 2017 22:31:25 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id A3FF86EC20 for ; Thu, 16 Feb 2017 22:31:23 +0000 (UTC) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Feb 2017 14:31:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,169,1484035200"; d="scan'208";a="59338263" Received: from omateolo-linux.fm.intel.com ([10.1.27.55]) by orsmga004.jf.intel.com with ESMTP; 16 Feb 2017 14:31:22 -0800 From: Oscar Mateo To: intel-gfx@lists.freedesktop.org Date: Thu, 16 Feb 2017 06:31:28 -0800 Message-Id: <1487255488-27105-1-git-send-email-oscar.mateo@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [Intel-gfx] [PATCH i-g-t] tools/intel_guc_logger: Fix the assert for the verbosity level X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP I guess no one has needed to change the verbosity level of the GuC logs. Signed-off-by: Oscar Mateo Reviewed-by: Daniele Ceraolo Spurio --- tools/intel_guc_logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/intel_guc_logger.c b/tools/intel_guc_logger.c index 159a54e..c9ea60d 100644 --- a/tools/intel_guc_logger.c +++ b/tools/intel_guc_logger.c @@ -302,7 +302,7 @@ static int parse_options(int opt, int opt_index, void *data) switch(opt) { case 'v': verbosity_level = atoi(optarg); - igt_assert_f(verbosity_level < 0 || verbosity_level > 3, "invalid input for -v option\n"); + igt_assert_f(verbosity_level >= 0 && verbosity_level <= 3, "invalid input for -v option\n"); igt_debug("verbosity level to be used is %d\n", verbosity_level); break; case 'o':