From patchwork Fri Sep 28 19:39:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 1522511 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 7A8C93FE80 for ; Fri, 28 Sep 2012 19:39:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030495Ab2I1Tje (ORCPT ); Fri, 28 Sep 2012 15:39:34 -0400 Received: from mail-qa0-f46.google.com ([209.85.216.46]:38282 "EHLO mail-qa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030508Ab2I1TjN (ORCPT ); Fri, 28 Sep 2012 15:39:13 -0400 Received: by mail-qa0-f46.google.com with SMTP id c26so180207qad.19 for ; Fri, 28 Sep 2012 12:39:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=oOAjt4ERT9+zaBtrzooOwvQJbLuIqXNnFSOQAwPCZBg=; b=iYzvr23d1iE+U7kIXlpgEOxR47BK7Z4rTCiugWBdbY3B5+I8I1BDohXZTkXvKkoIH2 k43HRDJw17G2Q3sAsMEVI8wyyozTXnq1bK/pkcC/r6GCJnCKvd4FqhaishDhPuAV6GHZ X6eFvZqm5WptJSkaAT/NZPJYHxk8M2hMsgh1Zo3gTdA6pN/dMSct0CHHoWmjJWfSJAwf yctJNmmntAuRonFODzwvEVKShDgWJO8XgRikrCKj7ryWxFZ7bi2gQ1tSf+U6RuFNoKFw kZObcUjEFarDKXg6JyqMpVSprHt+M8vMjbbsWB5LGASK9ZaO8qK3e8d+220ctQErYz8G uN6w== Received: by 10.224.33.198 with SMTP id i6mr10689900qad.88.1348861150920; Fri, 28 Sep 2012 12:39:10 -0700 (PDT) Received: from salusa.poochiereds.net (cpe-107-015-110-129.nc.res.rr.com. [107.15.110.129]) by mx.google.com with ESMTPS id ck11sm13656657qab.17.2012.09.28.12.39.08 (version=SSLv3 cipher=OTHER); Fri, 28 Sep 2012 12:39:09 -0700 (PDT) From: Jeff Layton To: steved@redhat.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH] nfsdcld: fix segfault in sqlite debug logging Date: Fri, 28 Sep 2012 15:39:00 -0400 Message-Id: <1348861140-27036-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.11.4 X-Gm-Message-State: ALoCoQmm+Q8JXsSgslOChCJY1dDhLbFeiHNu4CFykQzntdudVvPMmhv1B0v+BPIRGHXh7HvmWCi7 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org One too few arguments... Signed-off-by: Jeff Layton --- utils/nfsdcld/sqlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfsdcld/sqlite.c b/utils/nfsdcld/sqlite.c index bb2519d..fc882c6 100644 --- a/utils/nfsdcld/sqlite.c +++ b/utils/nfsdcld/sqlite.c @@ -320,7 +320,7 @@ sqlite_check_client(const unsigned char *clname, const size_t namelen) } ret = sqlite3_column_int(stmt, 0); - xlog(D_GENERAL, "%s: select returned %d rows", ret); + xlog(D_GENERAL, "%s: select returned %d rows", __func__, ret); if (ret != 1) { ret = -EACCES; goto out_err;