summaryrefslogtreecommitdiffstats
path: root/src/H5Sdbg.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-03-25 00:39:37 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-03-25 00:39:37 (GMT)
commitfeb20aac304b39e18c70f88cae2f7cf7d5c82db2 (patch)
treee15d7e751af4e3c42e77ea955d91db4cf27a71cf /src/H5Sdbg.c
parentbdac2ecdbff2c389a222b3d93ff1eb1d23ec6b23 (diff)
downloadhdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.zip
hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.gz
hdf5-feb20aac304b39e18c70f88cae2f7cf7d5c82db2.tar.bz2
Formats the source and updates the gcc warning pragmas
Diffstat (limited to 'src/H5Sdbg.c')
-rw-r--r--src/H5Sdbg.c36
1 files changed, 11 insertions, 25 deletions
diff --git a/src/H5Sdbg.c b/src/H5Sdbg.c
index 32f5295..8599b47 100644
--- a/src/H5Sdbg.c
+++ b/src/H5Sdbg.c
@@ -16,7 +16,7 @@
* Created: H5Sdbg.c
* Quincey Koziol
* Jul 24 2007
- *
+ *
*
* Purpose: Dump debugging information about a dataspace
*
@@ -27,53 +27,43 @@
/* Module Setup */
/****************/
-#include "H5Smodule.h" /* This source code file is part of the H5S module */
-
+#include "H5Smodule.h" /* This source code file is part of the H5S module */
/***********/
/* Headers */
/***********/
-#include "H5private.h" /* Generic Functions */
-#include "H5Eprivate.h" /* Error handling */
-#include "H5Spkg.h" /* Dataspaces */
-
+#include "H5private.h" /* Generic Functions */
+#include "H5Eprivate.h" /* Error handling */
+#include "H5Spkg.h" /* Dataspaces */
/****************/
/* Local Macros */
/****************/
-
/******************/
/* Local Typedefs */
/******************/
-
/********************/
/* Package Typedefs */
/********************/
-
/********************/
/* Local Prototypes */
/********************/
-
/*****************************/
/* Library Private Variables */
/*****************************/
-
/*********************/
/* Package Variables */
/*********************/
-
/*******************/
/* Local Variables */
/*******************/
-
-
/*-------------------------------------------------------------------------
* Function: H5S_debug
*
@@ -89,34 +79,30 @@
herr_t
H5S_debug(H5F_t *f, const void *_mesg, FILE *stream, int indent, int fwidth)
{
- const H5S_t *mesg = (const H5S_t*)_mesg;
+ const H5S_t *mesg = (const H5S_t *)_mesg;
FUNC_ENTER_NOAPI_NOINIT_NOERR
- switch(H5S_GET_EXTENT_TYPE(mesg)) {
+ switch (H5S_GET_EXTENT_TYPE(mesg)) {
case H5S_NULL:
- HDfprintf(stream, "%*s%-*s H5S_NULL\n", indent, "", fwidth,
- "Space class:");
+ HDfprintf(stream, "%*s%-*s H5S_NULL\n", indent, "", fwidth, "Space class:");
break;
case H5S_SCALAR:
- HDfprintf(stream, "%*s%-*s H5S_SCALAR\n", indent, "", fwidth,
- "Space class:");
+ HDfprintf(stream, "%*s%-*s H5S_SCALAR\n", indent, "", fwidth, "Space class:");
break;
case H5S_SIMPLE:
- HDfprintf(stream, "%*s%-*s H5S_SIMPLE\n", indent, "", fwidth,
- "Space class:");
+ HDfprintf(stream, "%*s%-*s H5S_SIMPLE\n", indent, "", fwidth, "Space class:");
H5O_debug_id(H5O_SDSPACE_ID, f, &(mesg->extent), stream, indent + 3, MAX(0, fwidth - 3));
break;
case H5S_NO_CLASS:
default:
HDfprintf(stream, "%*s%-*s **UNKNOWN-%ld**\n", indent, "", fwidth,
- "Space class:", (long)(H5S_GET_EXTENT_TYPE(mesg)));
+ "Space class:", (long)(H5S_GET_EXTENT_TYPE(mesg)));
break;
} /* end switch */
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5S_debug() */
-