summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-08-18 00:43:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:29 -0500
commit810dffecc23a16dee1430a1fd6c833472835c013 (patch)
treee2912eaa619935f6a2926518970d7bf915a09404
parent4e21575ed2144c0ca330439989278906c273270d (diff)
downloadsamba-810dffecc23a16dee1430a1fd6c833472835c013.tar.gz
samba-810dffecc23a16dee1430a1fd6c833472835c013.tar.bz2
samba-810dffecc23a16dee1430a1fd6c833472835c013.zip
r9371: add the usefull trick hack for NT_STATUS_NO_MEMORY too
metze (This used to be commit 9b9635833f44e63f8acfd619ae2ecc06f6b2312a)
-rw-r--r--source4/include/nterr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/include/nterr.h b/source4/include/nterr.h
index 1cf0b6a8d1..0395460c9a 100644
--- a/source4/include/nterr.h
+++ b/source4/include/nterr.h
@@ -81,7 +81,12 @@
#define NT_STATUS_UNRECOGNIZED_MEDIA NT_STATUS(0xC0000000 | 0x0014)
#define NT_STATUS_NONEXISTENT_SECTOR NT_STATUS(0xC0000000 | 0x0015)
#define NT_STATUS_MORE_PROCESSING_REQUIRED NT_STATUS(0xC0000000 | 0x0016)
+#if 0
+/* this demonstrates a little trick when tracking down error codes */
+#define NT_STATUS_NO_MEMORY (printf("no memory at %s\n", __location__), NT_STATUS(0xC0000000 | 0x0017))
+#else
#define NT_STATUS_NO_MEMORY NT_STATUS(0xC0000000 | 0x0017)
+#endif
#define NT_STATUS_CONFLICTING_ADDRESSES NT_STATUS(0xC0000000 | 0x0018)
#define NT_STATUS_NOT_MAPPED_VIEW NT_STATUS(0xC0000000 | 0x0019)
#define NT_STATUS_UNABLE_TO_FREE_VM NT_STATUS(0xC0000000 | 0x001a)