smbspool: Add string representation of nt_status
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 12 Jan 2016 14:16:43 +0000 (15:16 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 22 Jan 2016 19:59:36 +0000 (20:59 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Jan 22 20:59:36 CET 2016 on sn-devel-144

source3/client/smbspool.c

index 7161e86468ec2878d7f281805e1565f22bddcb99..e3818228500b95f1e930c6ea5f42da75125052f4 100644 (file)
@@ -346,8 +346,8 @@ get_exit_code(struct cli_state * cli,
        };
 
 
-       fprintf(stderr, "DEBUG: get_exit_code(cli=%p, nt_status=%x)\n",
-               cli, NT_STATUS_V(nt_status));
+       fprintf(stderr, "DEBUG: get_exit_code(cli=%p, nt_status=%s [%x])\n",
+               cli, nt_errstr(nt_status), NT_STATUS_V(nt_status));
 
        for (i = 0; i < ARRAY_SIZE(auth_errors); i++) {
                if (!NT_STATUS_EQUAL(nt_status, auth_errors[i])) {