summaryrefslogtreecommitdiffstats
path: root/src/H5Flow.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-08-06 21:32:33 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-08-06 21:32:33 (GMT)
commitacd04a1aa67b182623f26979515ab8dd5b978f11 (patch)
tree7a65e24c03e9e2d7db021e6f89603f5bab458a78 /src/H5Flow.c
parentde875442351b3ddd204b65d371536e63de6be8ff (diff)
downloadhdf5-acd04a1aa67b182623f26979515ab8dd5b978f11.zip
hdf5-acd04a1aa67b182623f26979515ab8dd5b978f11.tar.gz
hdf5-acd04a1aa67b182623f26979515ab8dd5b978f11.tar.bz2
[svn-r579] Changes since 19980806
---------------------- ./config/solaris2.5 Hopefully set up now so it honors the CC and CFLAGS variables and understands solaris cc flags. ./test/big.c Checks to see if creating lots of large sparse files exceeds the user disk quota and skips the test. It also checks that we can actually open ~64 files at once. ./doc/html/Files.html ./src/H5A.c ./src/H5Aprivate.h ./src/H5F.c ./src/H5Fpublic.h Added the H5Fflush() function which takes any object as an argument as long as the object is in some way associated with a file. This required an H5A_entof() ./src/H5.c ./src/H5Flow.c The `%a' format of HDfprintf() now allows a field width and justification flag etc, like the other formats. The old H5F_addr_print() was recoded to call HDfprintf() instead of vice versa.
Diffstat (limited to 'src/H5Flow.c')
-rw-r--r--src/H5Flow.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/H5Flow.c b/src/H5Flow.c
index 2196341..f929e44 100644
--- a/src/H5Flow.c
+++ b/src/H5Flow.c
@@ -840,31 +840,12 @@ H5F_addr_decode(H5F_t *f, const uint8 **pp, haddr_t *addr/*out*/)
void
H5F_addr_print(FILE *stream, const haddr_t *addr)
{
- haddr_t tmp;
-
assert(stream);
assert(addr);
- if (addr_defined(addr)) {
- /*
- * It would be nice if we could use the `%Lu', `%llu', or `%qu', but
- * we don't know which is supported. So we split the address into a
- * low 4-bytes and a high 4-bytes. If the high 4-bytes are non-zero
- * then we print the address in hexadecimal, otherwise we use decimal.
- */
- tmp = *addr;
- tmp.offset >>= 32;
- if (tmp.offset) {
- fprintf(stream, "0x%08lx%08lx",
- (unsigned long) (tmp.offset),
- (unsigned long) (addr->offset & 0xffffffff));
- } else {
- fprintf(stream, "%lu", (unsigned long) (addr->offset));
- }
- } else {
- fprintf(stream, "UNDEF");
- }
+ HDfprintf(stream, "%a", addr);
}
+
/*-------------------------------------------------------------------------
* Function: H5F_addr_pow2