From patchwork Wed Aug 1 18:55:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masayoshi Mizuma X-Patchwork-Id: 10552821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 03C751708 for ; Wed, 1 Aug 2018 18:56:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F36772B9F8 for ; Wed, 1 Aug 2018 18:56:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5FF52BA60; Wed, 1 Aug 2018 18:56:18 +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.8 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (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 9FABB2B9F8 for ; Wed, 1 Aug 2018 18:56:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 41FCC210D2269; Wed, 1 Aug 2018 11:56:18 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400d:c0d::242; helo=mail-qt0-x242.google.com; envelope-from=msys.mizuma@gmail.com; receiver=linux-nvdimm@lists.01.org Received: from mail-qt0-x242.google.com (mail-qt0-x242.google.com [IPv6:2607:f8b0:400d:c0d::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 52A44210C1EFB for ; Wed, 1 Aug 2018 11:56:15 -0700 (PDT) Received: by mail-qt0-x242.google.com with SMTP id n6-v6so21110706qtl.4 for ; Wed, 01 Aug 2018 11:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=IpWw7pOiP3Y8ny8BI7t4LJl/sGlpvxv50uTXW4Lv3Q8=; b=auDvq1hAppA2Vlwxhifg4HGKEmgaMKzsGglf5SRfEtR/Ckwa7xOlcbwztmXJJW7RjM Wl3MAMMtRAR4900AbD3sN+g4PRH3w57duWjQJUSs5LDZ+MVQiKUEVINm8Sun4+Uuojf0 DXYH9sMvaSP23WFOoKqGQEN7bZCky62/2LSxgQCzMYDSYtZxrDj4rqKfikdkObcy8xPB 8i0VhI6FXtFUOWz/VEBG3XXbwtwBupe5T2Aw5/nah9+ZQQ1nHlWysYzAMaxfWQczj+rE gXnIuktPxGnrsfhepzHH9Zjf5dcJFiOe/7O/WyZyG/HCLJftTvMTmbOp2qllEwdCzHVo kMdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IpWw7pOiP3Y8ny8BI7t4LJl/sGlpvxv50uTXW4Lv3Q8=; b=hsMMn6e4JbYv9/+KV8L0tMI+yGj8EIIQkg79rzsV2Ws8Y1hpd7d9wT86SDQAHgrCmg FYRmhZpQxrsWglmRjgN1KK4IhC6cHbhl9Raz0gHRTRYM/yZquX0Nc41pMU0XyWGqZKxM VPbgH6rx1IHPkUXaXJLo3wVuT4tanwjl0sHOJBB+cGprV+2aPUMYSRnoc0T1Wd1bQ7im WcPub6Rhrmu0k6w5li9lZ5HsaP/BPO39uaDEwonWmu+EPRyC1og9gzfrmrDUYqNiSJvg zwKCC5yATrHT8cbCBqgTtVK5Qf3BS9sKMZ6MSPHYbUB9RVG1+SnZejSXKtE08Sv9jYKq mQjA== X-Gm-Message-State: AOUpUlHSc8DF+gTT6zAVawGW3NUtACYC1oiPr82Htp2sFHDTgHohvIas J7NiXfKCDpohn9pfFpY6BxY7bLE= X-Google-Smtp-Source: AAOMgpcXIgePSVM0ZHTnQqiTV/pRs+6fMQDwA29jtDtLavccoWMpmu9HIVGN7cw0UvSw1Pe7AmMEfg== X-Received: by 2002:ac8:24b9:: with SMTP id s54-v6mr27327312qts.18.1533149775048; Wed, 01 Aug 2018 11:56:15 -0700 (PDT) Received: from gabell.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id y142-v6sm13502931qka.5.2018.08.01.11.56.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 11:56:14 -0700 (PDT) From: Masayoshi Mizuma To: linux-nvdimm@lists.01.org Subject: [PATCH] ndctl, monitor: Change the fail log priority to err. Date: Wed, 1 Aug 2018 14:55:38 -0400 Message-Id: <20180801185538.27084-1-msys.mizuma@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Masayoshi Mizuma MIME-Version: 1.0 Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP From: Masayoshi Mizuma fail() is called if an error happens, but the log priority is debug, so user may not notice the error. Let's change the priority to err. Cc: QI Fuli Signed-off-by: Masayoshi Mizuma --- ndctl/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndctl/monitor.c b/ndctl/monitor.c index 84d51c4..68bbf65 100644 --- a/ndctl/monitor.c +++ b/ndctl/monitor.c @@ -40,7 +40,7 @@ static int did_fail; #define fail(fmt, ...) \ do { \ did_fail = 1; \ - dbg(ctx, "ndctl-%s:%s:%d: " fmt, \ + err(ctx, "ndctl-%s:%s:%d: " fmt, \ VERSION, __func__, __LINE__, ##__VA_ARGS__); \ } while (0)