svn commit: samba r8116 - in branches/SAMBA_4_0/source/include: .
tridge at samba.org
tridge at samba.org
Mon Jul 4 05:02:29 GMT 2005
Author: tridge
Date: 2005-07-04 05:02:29 +0000 (Mon, 04 Jul 2005)
New Revision: 8116
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8116
Log:
demonstrate a little trick that can be used to track down where an
error is coming from. In this case I needed to know where a
NT_STATUS_ACCESS_DENIED was being returned, which is a very common
error, but I needed to know which place in the code was giving it
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-07-04 05:01:22 UTC (rev 8115)
+++ branches/SAMBA_4_0/source/include/nterr.h 2005-07-04 05:02:29 UTC (rev 8116)
@@ -92,7 +92,12 @@
#define NT_STATUS_INVALID_VIEW_SIZE NT_STATUS(0xC0000000 | 0x001f)
#define NT_STATUS_INVALID_FILE_FOR_SECTION NT_STATUS(0xC0000000 | 0x0020)
#define NT_STATUS_ALREADY_COMMITTED NT_STATUS(0xC0000000 | 0x0021)
+#if 0
+/* this demonstrates a little trick when tracking down error codes */
+#define NT_STATUS_ACCESS_DENIED (printf("access denied at %s\n", __location__), NT_STATUS(0xC0000000 | 0x0022))
+#else
#define NT_STATUS_ACCESS_DENIED NT_STATUS(0xC0000000 | 0x0022)
+#endif
#define NT_STATUS_BUFFER_TOO_SMALL NT_STATUS(0xC0000000 | 0x0023)
#define NT_STATUS_OBJECT_TYPE_MISMATCH NT_STATUS(0xC0000000 | 0x0024)
#define NT_STATUS_NONCONTINUABLE_EXCEPTION NT_STATUS(0xC0000000 | 0x0025)
More information about the samba-cvs
mailing list