diff options
Diffstat (limited to 'test/tmeta.c')
-rw-r--r-- | test/tmeta.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/tmeta.c b/test/tmeta.c index 64f6b75..014a09a 100644 --- a/test/tmeta.c +++ b/test/tmeta.c @@ -101,22 +101,30 @@ void test_metadata(void) /* Check the values decoded */ if(di16!=TEST_INT16_VALUE) { - print_func("Error decoding int16 meta-data wanted: %d, got: %d\n",(int)TEST_INT16_VALUE,(int)di16); + print_func ("Error decoding int16 meta-data wanted: %d, got: %d " + "at %s:%d\n", __FILE__, __LINE__, (int)TEST_INT16_VALUE, + (int)di16); num_errs++; } /* end if */ if(du16!=TEST_UINT16_VALUE) { - print_func("Error decoding uint16 meta-data wanted: %u, got: %u\n",(unsigned)TEST_UINT16_VALUE,(unsigned)du16); + print_func ("Error decoding uint16 meta-data wanted: %u, got: %u " + "at %s:%d\n", __FILE__, __LINE__, + (unsigned)TEST_UINT16_VALUE, (unsigned)du16); num_errs++; } /* end if */ if(di32!=TEST_INT32_VALUE) { - print_func("Error decoding int32 meta-data wanted: %ld, got: %ld\n",(long)TEST_INT32_VALUE,(long)di32); + print_func ("Error decoding int32 meta-data wanted: %ld, got: %ld " + "at %s:%d\n", __FILE__, __LINE__, (long)TEST_INT32_VALUE, + (long)di32); num_errs++; } /* end if */ if(du32!=TEST_UINT32_VALUE) { - print_func("Error decoding uint32 meta-data wanted: %lu, got: %lu\n",(unsigned long)TEST_UINT32_VALUE,(unsigned long)du32); + print_func ("Error decoding uint32 meta-data wanted: %lu, got: %lu " + "at %s:%d\n", __FILE__, __LINE__, + (unsigned long)TEST_UINT32_VALUE, (unsigned long)du32); num_errs++; } /* end if */ } /* test_metadata() */ |