svn commit: samba r4402 - in branches/SAMBA_4_0/source/torture/raw: .

tridge at samba.org tridge at samba.org
Thu Dec 30 02:22:30 GMT 2004


Author: tridge
Date: 2004-12-30 02:22:29 +0000 (Thu, 30 Dec 2004)
New Revision: 4402

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

Log:
use __location__ instead of __LINE__ in the RAW-RENAME test


Modified:
   branches/SAMBA_4_0/source/torture/raw/rename.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/rename.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/rename.c	2004-12-30 02:22:03 UTC (rev 4401)
+++ branches/SAMBA_4_0/source/torture/raw/rename.c	2004-12-30 02:22:29 UTC (rev 4402)
@@ -23,16 +23,16 @@
 
 #define CHECK_STATUS(status, correct) do { \
 	if (!NT_STATUS_EQUAL(status, correct)) { \
-		printf("(%d) Incorrect status %s - should be %s\n", \
-		       __LINE__, nt_errstr(status), nt_errstr(correct)); \
+		printf("(%s) Incorrect status %s - should be %s\n", \
+		       __location__, nt_errstr(status), nt_errstr(correct)); \
 		ret = False; \
 		goto done; \
 	}} while (0)
 
 #define CHECK_VALUE(v, correct) do { \
 	if ((v) != (correct)) { \
-		printf("(%d) Incorrect %s %d - should be %d\n", \
-		       __LINE__, #v, (int)v, (int)correct); \
+		printf("(%s) Incorrect %s %d - should be %d\n", \
+		       __location__, #v, (int)v, (int)correct); \
 		ret = False; \
 	}} while (0)
 



More information about the samba-cvs mailing list