ctdb-tests: Fix CID 1364522 (Argument cannot be negative)
authorAmitay Isaacs <amitay@gmail.com>
Wed, 27 Jul 2016 02:19:45 +0000 (12:19 +1000)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Jul 2016 03:00:15 +0000 (05:00 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tests/src/fetch_ring.c

index d5b21027e7ac41800cdd498857d1da181a5a2e00..b5a63dff188f099c1d155b1993b57f6b22cb71d9 100644 (file)
@@ -344,8 +344,7 @@ int main(int argc, const char *argv[])
 
        ret = ctdb_client_init(mem_ctx, ev, opts->socket, &client);
        if (ret != 0) {
-               fprintf(stderr, "Failed to initialize client, %s\n",
-                       strerror(ret));
+               fprintf(stderr, "Failed to initialize client, ret=%d\n", ret);
                exit(1);
        }