From patchwork Mon Apr 24 16:41:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 9696775 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 82640603F2 for ; Mon, 24 Apr 2017 16:41:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 742BC2807B for ; Mon, 24 Apr 2017 16:41:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6905928329; Mon, 24 Apr 2017 16:41:41 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B892267EC for ; Mon, 24 Apr 2017 16:41:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S974947AbdDXQlc (ORCPT ); Mon, 24 Apr 2017 12:41:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44876 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S974818AbdDXQla (ORCPT ); Mon, 24 Apr 2017 12:41:30 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 72F554AE9E for ; Mon, 24 Apr 2017 16:41:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 72F554AE9E Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jlayton@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 72F554AE9E Received: from tleilax.poochiereds.net (ovpn-121-37.rdu2.redhat.com [10.10.121.37]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5C34317177; Mon, 24 Apr 2017 16:41:18 +0000 (UTC) From: Jeff Layton To: steved@redhat.com Cc: linux-nfs@vger.kernel.org, bfields@redhat.com, chunwang@redhat.com Subject: [PATCH] nfsdcltrack: silence some expected errors Date: Mon, 24 Apr 2017 12:41:17 -0400 Message-Id: <20170424164117.13119-1-jlayton@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 24 Apr 2017 16:41:19 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On a new install, we're unable to select from the parameters table, as it doesn't exist yet. The code is set up to log that fact at L_ERROR now, but it's an expected situation. Change it to log that at D_GENERAL instead. Reported-and-Tested-by: ChunYu Wang Signed-off-by: Jeff Layton --- utils/nfsdcltrack/sqlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/nfsdcltrack/sqlite.c b/utils/nfsdcltrack/sqlite.c index 54cd7487920b..1552eba4e35c 100644 --- a/utils/nfsdcltrack/sqlite.c +++ b/utils/nfsdcltrack/sqlite.c @@ -101,7 +101,7 @@ sqlite_query_schema_version(void) "SELECT value FROM parameters WHERE key == \"version\";", -1, &stmt, NULL); if (ret != SQLITE_OK) { - xlog(L_ERROR, "Unable to prepare select statement: %s", + xlog(D_GENERAL, "Unable to prepare select statement: %s", sqlite3_errmsg(dbh)); ret = 0; goto out; @@ -110,7 +110,7 @@ sqlite_query_schema_version(void) /* query schema version */ ret = sqlite3_step(stmt); if (ret != SQLITE_ROW) { - xlog(L_ERROR, "Select statement execution failed: %s", + xlog(D_GENERAL, "Select statement execution failed: %s", sqlite3_errmsg(dbh)); ret = 0; goto out;