From nobody Sat May 18 09:22:58 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1602154404; cv=none; d=zohomail.com; s=zohoarc; b=DvaZsn+FBSSPMgHAWlEsG1BSY591IY/hIDfLY8TCiIq9HEl7kbe4qTvFm9kF16kJ1nnfQ7WDQOWeSoo2jKLFqiFBGGiXRAviBU2ZQ/XkFq76uiV0bYJsomFiSZNCS0uCP9sx/MDId7p88hkjPCXho6A5/dEFJgdrX/6E9MsMPXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602154404; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ey2icXSOHzs0OvKfi4WaBSS7f7JcIOXpXt/b2XRhVLE=; b=Od06+lmgX2d+AnwouULsWBYZQaGSvouuNkA/QtGDpTFzH6gd6/dcFgv8FCzMx+2eqv1+/tD+8x9dI4pPxxm9sOrwlho2VZpyDflYc/wK04Kb+rNy4xqptQVKhEl05Iurl06x/YzIqgh8ecXYIUoPCqBm49Vb6JLi/stYOmKnllI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602154404196593.1906914724236; Thu, 8 Oct 2020 03:53:24 -0700 (PDT) Received: from localhost ([::1]:36732 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQTY2-00012M-NP for importer@patchew.org; Thu, 08 Oct 2020 06:53:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQTW1-0007e3-Ve for qemu-devel@nongnu.org; Thu, 08 Oct 2020 06:51:18 -0400 Received: from mgwkm02.jp.fujitsu.com ([202.219.69.169]:10262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQTVy-0008Qz-Uj for qemu-devel@nongnu.org; Thu, 08 Oct 2020 06:51:16 -0400 Received: from kw-mxq.gw.nic.fujitsu.com (unknown [192.168.231.130]) by mgwkm02.jp.fujitsu.com with smtp id 464f_21e1_c4962a1f_5c83_46bb_b24d_06a39e2f99bf; Thu, 08 Oct 2020 19:51:03 +0900 Received: from g01jpfmpwkw03.exch.g01.fujitsu.local (g01jpfmpwkw03.exch.g01.fujitsu.local [10.0.193.57]) by kw-mxq.gw.nic.fujitsu.com (Postfix) with ESMTP id 7273CAC00AB for ; Thu, 8 Oct 2020 19:51:02 +0900 (JST) Received: from G01JPEXCHKW14.g01.fujitsu.local (G01JPEXCHKW14.g01.fujitsu.local [10.0.194.53]) by g01jpfmpwkw03.exch.g01.fujitsu.local (Postfix) with ESMTP id AACC7BD64A6; Thu, 8 Oct 2020 19:51:01 +0900 (JST) Received: from luna3.soft.fujitsu.com (10.124.196.199) by G01JPEXCHKW14.g01.fujitsu.local (10.0.194.53) with Microsoft SMTP Server id 14.3.487.0; Thu, 8 Oct 2020 19:51:01 +0900 From: Misono Tomohiro To: , Subject: [PATCH] virtiofsd: passthrough_ll: set FUSE_LOG_INFO as default log_level Date: Thu, 8 Oct 2020 20:01:48 +0900 Message-ID: <20201008110148.2757734-1-misono.tomohiro@jp.fujitsu.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SecurityPolicyCheck-GC: OK by FENCE-Mail X-TM-AS-GCONF: 00 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=202.219.69.169; envelope-from=misono.tomohiro@fujitsu.com; helo=mgwkm02.jp.fujitsu.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/08 06:51:05 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Just noticed that although help message says default log level is INFO, it is actually 0 (EMRGE) and no mesage will be shown when error occurs. It's better to follow help message. Signed-off-by: Misono Tomohiro Reviewed-by: Stefan Hajnoczi --- tools/virtiofsd/passthrough_ll.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/virtiofsd/passthrough= _ll.c index 0b229ebd57..4ff9f1b688 100644 --- a/tools/virtiofsd/passthrough_ll.c +++ b/tools/virtiofsd/passthrough_ll.c @@ -2888,12 +2888,11 @@ int main(int argc, char *argv[]) goto err_out1; } =20 - /* - * log_level is 0 if not configured via cmd options (0 is LOG_EMERG, - * and we don't use this log level). - */ if (opts.log_level !=3D 0) { current_log_level =3D opts.log_level; + } else { + /* default log level is INFO */ + current_log_level =3D FUSE_LOG_INFO; } lo.debug =3D opts.debug; if (lo.debug) { --=20 2.25.4