r4402: use __location__ instead of __LINE__ in the RAW-RENAME test
authorAndrew Tridgell <tridge@samba.org>
Thu, 30 Dec 2004 02:22:29 +0000 (02:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:43 +0000 (13:07 -0500)
(This used to be commit 09ac1338209b0d0878173cfef3dca5603271b1a8)

source4/torture/raw/rename.c

index c839100e7cbe1d364171dcfdd9b0f32de6e18731..9a41a25e64c095c85f644ec359b7fbe20689f89e 100644 (file)
 
 #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)