From a6c7dc12271e93c2c7865a7d4c3160565462d514 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Thu, 9 Oct 2003 11:55:59 -0500 Subject: [svn-r7584] Purpose: Code cleanup Description: Added line #'s to a bunch of the error printf's, so it's easier to locate where an error occurs. Platforms tested: FreeBSD 4.9 (sleipnir) Cray SV1 (wind) --- test/tvltypes.c | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/test/tvltypes.c b/test/tvltypes.c index 20f4eef..c924db6 100644 --- a/test/tvltypes.c +++ b/test/tvltypes.c @@ -272,7 +272,7 @@ test_vltypes_vlen_atomic(void) for(i=0; ilen!=t2->len) { num_errs++; - printf("VL data length don't match!, i=%d, j=%d, t1->len=%d, t2->len=%d\n",(int)i,(int)j,(int)t1->len,(int)t2->len); + printf("%d: VL data length don't match!, i=%d, j=%d, t1->len=%d, t2->len=%d\n",__LINE__,(int)i,(int)j,(int)t1->len,(int)t2->len); continue; } /* end if */ for(k=0; klen; k++) { @@ -1434,14 +1434,14 @@ rewrite_longer_vltypes_vlen_vlen_atomic(void) for(i=0; ilen!=t2->len) { num_errs++; - printf("VL data length don't match!, i=%d, j=%d, t1->len=%d, t2->len=%d\n",(int)i,(int)j,(int)t1->len,(int)t2->len); + printf("%d: VL data length don't match!, i=%d, j=%d, t1->len=%d, t2->len=%d\n",__LINE__,(int)i,(int)j,(int)t1->len,(int)t2->len); continue; } /* end if */ for(k=0; klen; k++) { @@ -1615,20 +1615,18 @@ rewrite_shorter_vltypes_vlen_vlen_atomic(void) for(i=0; ilen!=t2->len) { num_errs++; - printf("VL data length don't match!, i=%d, j=%d, t1->len=%d, t2->len=%d\n",(int)i,(int)j,(int)t1->len,(int)t2->len); + printf("%d: VL data length don't match!, i=%d, j=%d, t1->len=%d, t2->len=%d\n",__LINE__,(int)i,(int)j,(int)t1->len,(int)t2->len); continue; } /* end if */ for(k=0; klen; k++) { if( ((unsigned int *)t1->p)[k] != ((unsigned int *)t2->p)[k] ) { num_errs++; -/*printf("rdata[i].len=%d, t2->len=%d\n", rdata[i].len, t2->len);*/ printf("VL data values don't match!, t1->p[%d]=%d, t2->p[%d]=%d\n",(int)k, (int)((unsigned int *)t1->p)[k], (int)k, (int)((unsigned int *)t2->p)[k]); continue; } /* end if */ -- cgit v0.12