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 bb2519d..fc882c6 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;