summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_basic.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/ndr/ndr_basic.c')
-rw-r--r--source4/librpc/ndr/ndr_basic.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/librpc/ndr/ndr_basic.c b/source4/librpc/ndr/ndr_basic.c
index 3d87b9efc6..a2f0309acd 100644
--- a/source4/librpc/ndr/ndr_basic.c
+++ b/source4/librpc/ndr/ndr_basic.c
@@ -83,6 +83,11 @@ NTSTATUS ndr_pull_NTSTATUS(struct ndr_pull *ndr, NTSTATUS *status)
return NT_STATUS_OK;
}
+void ndr_print_NTSTATUS(struct ndr_print *ndr, const char *name, NTSTATUS *r)
+{
+ ndr->print(ndr, "%-25s: %s", name, nt_errstr(*r));
+}
+
/*
pull a WERROR
*/
@@ -94,6 +99,11 @@ NTSTATUS ndr_pull_WERROR(struct ndr_pull *ndr, WERROR *status)
return NT_STATUS_OK;
}
+void ndr_print_WERROR(struct ndr_print *ndr, const char *name, WERROR *r)
+{
+ ndr->print(ndr, "%-25s: %s", name, win_errstr(*r));
+}
+
/*
parse a set of bytes
*/