[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.0.4-321-g5d2dd1c

mysql vizuser noreply at mpich.org
Sun Jun 30 14:59:58 CDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  5d2dd1c58465a86249bcb699ad802f091a212524 (commit)
      from  89958058a63760b81afde2bc62ec7d60dacfe13e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/5d2dd1c58465a86249bcb699ad802f091a212524

commit 5d2dd1c58465a86249bcb699ad802f091a212524
Author: William Gropp <wgropp at illinois.edu>
Date:   Sun Jun 30 12:48:59 2013 -0500

    Add explicit casts to unsigned long for printing types of size_t

diff --git a/src/mpl/src/mpltrmem.c b/src/mpl/src/mpltrmem.c
index cac9f12..b33887f 100644
--- a/src/mpl/src/mpltrmem.c
+++ b/src/mpl/src/mpltrmem.c
@@ -351,7 +351,7 @@ void MPL_trfree(void *a_ptr, int line, const char file[])
             if (TRidSet) {
                 MPL_error_printf
                     ("[%d] Block [id=%d(%lu)] at address %s was already freed\n", world_rank,
-                     head->id, head->size, hexstring);
+                     head->id, (unsigned long)head->size, hexstring);
             }
             else {
                 MPL_error_printf("[%d] Block at address %s was already freed\n",
@@ -371,7 +371,7 @@ void MPL_trfree(void *a_ptr, int line, const char file[])
             if (TRidSet) {
                 MPL_error_printf
                     ("[%d] Block [id=%d(%lu)] at address %s is corrupted (probably write past end)\n",
-                     world_rank, head->id, head->size, hexstring);
+                     world_rank, head->id, (unsigned long)head->size, hexstring);
             }
             else {
                 MPL_error_printf
@@ -412,7 +412,8 @@ void MPL_trfree(void *a_ptr, int line, const char file[])
     if (TRlevel & TR_FREE) {
         addrToHex(a_ptr, hexstring);
         MPL_error_printf("[%d] Freeing %lu bytes at %s in %s[%d]\n",
-                         world_rank, head->size, hexstring, file, line);
+                         world_rank, (unsigned long)head->size, hexstring, 
+                         file, line);
     }
 
     /*
@@ -530,7 +531,7 @@ int MPL_trvalid2(const char str[], int line, const char file[] )
             if (TRidSet) {
                 MPL_error_printf
                     ("[%d] Block [id=%d(%lu)] at address %s is corrupted (probably write past end)\n",
-                     world_rank, head->id, head->size, hexstring);
+                     world_rank, head->id, (unsigned long)head->size, hexstring);
             }
             else {
                 MPL_error_printf
@@ -594,7 +595,8 @@ void MPL_trdump(FILE * fp, int minid)
         MPL_VG_MAKE_MEM_DEFINED(head, sizeof(*head));
         if (head->id >= minid) {
             addrToHex((char *) head + sizeof(TrSPACE), hexstring);
-            fprintf(fp, "[%d] %lu at [%s], ", world_rank, head->size, hexstring);
+            fprintf(fp, "[%d] %lu at [%s], ", world_rank, 
+                    (unsigned long)head->size, hexstring);
             head->fname[TR_FNAME_LEN - 1] = 0;  /* Be extra careful */
             if (TRidSet) {
                 /* For head->id >= 0, we can add code to map the id to

-----------------------------------------------------------------------

Summary of changes:
 src/mpl/src/mpltrmem.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list