when we get an NDR error in the logs, it is useful to know where it happened
[ira/wip.git] / librpc / ndr / libndr.h
index 7109b73d2a962f395e3dbf6a61de2d48b6802378..53bed011e7ccea467a36a891a6012fec5762afdc 100644 (file)
@@ -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)