]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfsdcltrack: fix segfault in sqlite debug logging
authorJeff Layton <jlayton@redhat.com>
Thu, 8 Nov 2012 19:02:21 +0000 (14:02 -0500)
committerSteve Dickson <steved@redhat.com>
Sun, 11 Nov 2012 23:01:23 +0000 (18:01 -0500)
One too few arguments...

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsdcld/sqlite.c

index bb2519de804d727cc5ae79299b5aa73dac89a7c0..fc882c6f40ce8eb9d2966dc1c6503a3ee7e3b7d4 100644 (file)
@@ -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;