summaryrefslogtreecommitdiff
path: root/librpc/ndr
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-08-12 15:33:37 +1000
committerAndrew Tridgell <tridge@samba.org>2009-08-12 15:33:37 +1000
commit011f103501e9465fbea56194910e082306bbf1f1 (patch)
treec3b7267bdf827491d97af1e41eef585e96fe0092 /librpc/ndr
parent3b5c6bc971c4e5c32b19072f0f54258792d00439 (diff)
downloadsamba-011f103501e9465fbea56194910e082306bbf1f1.tar.gz
samba-011f103501e9465fbea56194910e082306bbf1f1.tar.bz2
samba-011f103501e9465fbea56194910e082306bbf1f1.zip
when we get an NDR error in the logs, it is useful to know where it happened
Diffstat (limited to 'librpc/ndr')
-rw-r--r--librpc/ndr/libndr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/librpc/ndr/libndr.h b/librpc/ndr/libndr.h
index 7109b73d2a..53bed011e7 100644
--- a/librpc/ndr/libndr.h
+++ b/librpc/ndr/libndr.h
@@ -215,7 +215,7 @@ enum ndr_compression_alg {
#define NDR_PULL_NEED_BYTES(ndr, n) do { \
if ((n) > ndr->data_size || ndr->offset + (n) > ndr->data_size) { \
- return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, "Pull bytes %u", (unsigned)n); \
+ return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, "Pull bytes %u (%s)", (unsigned)n, __location__); \
} \
} while(0)