diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-12-03 21:04:07 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-12-03 21:04:07 (GMT) |
commit | e30b98d7fbffc23065435c2b475fb5fce563afb6 (patch) | |
tree | 7d9e01f661a560c7fcfdf58ea23700e289b532cc /test/h5test.c | |
parent | 6e1ab59a750da75acec98ee519de16729cb0795e (diff) | |
download | hdf5-e30b98d7fbffc23065435c2b475fb5fce563afb6.zip hdf5-e30b98d7fbffc23065435c2b475fb5fce563afb6.tar.gz hdf5-e30b98d7fbffc23065435c2b475fb5fce563afb6.tar.bz2 |
[svn-r4665] Purpose:
Code cleanup
Description:
Changed the logging file driver to use bitmasked flags for features to
enable, instead of using a verbosity level.
Platforms tested:
Solaris 2.6 (baldric)
Diffstat (limited to 'test/h5test.c')
-rw-r--r-- | test/h5test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/h5test.c b/test/h5test.c index 05df6c1..62fdc90 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -393,7 +393,7 @@ h5_fileaccess(void) char s[1024]; hid_t fapl = -1; hsize_t fam_size = 100*1024*1024; /*100 MB*/ - long verbosity = 1; + long log_flags = H5FD_LOG_LOC_IO; H5FD_mem_t mt; /* First use the environment variable, then the constant */ @@ -458,9 +458,9 @@ h5_fileaccess(void) } else if (!HDstrcmp(name, "log")) { /* Log file access */ if ((val = HDstrtok(NULL, " \t\n\r"))) - verbosity = HDstrtol(val, NULL, 0); + log_flags = HDstrtol(val, NULL, 0); - if (H5Pset_fapl_log(fapl, NULL, (int)verbosity) < 0) + if (H5Pset_fapl_log(fapl, NULL, log_flags, 0) < 0) return -1; } else { /* Unknown driver */ |