svn commit: samba r9371 - in branches/SAMBA_4_0/source/include: .

metze at samba.org metze at samba.org
Thu Aug 18 00:43:00 GMT 2005


Author: metze
Date: 2005-08-18 00:43:00 +0000 (Thu, 18 Aug 2005)
New Revision: 9371

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9371

Log:
add the usefull trick hack for NT_STATUS_NO_MEMORY too

metze
Modified:
   branches/SAMBA_4_0/source/include/nterr.h


Changeset:
Modified: branches/SAMBA_4_0/source/include/nterr.h
===================================================================
--- branches/SAMBA_4_0/source/include/nterr.h	2005-08-18 00:31:40 UTC (rev 9370)
+++ branches/SAMBA_4_0/source/include/nterr.h	2005-08-18 00:43:00 UTC (rev 9371)
@@ -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)



More information about the samba-cvs mailing list