From: Ezra Peisach Date: Wed, 28 Jun 2000 15:40:46 +0000 (+0000) Subject: * dyn_create.c, dyn_delete.c, dyn_insert.c, dyn_put.c: Use %p X-Git-Tag: krb5-1.3-alpha1~2084 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fbb00c514f655fbd31687bad30dfaa81183bb972;p=krb5.git * dyn_create.c, dyn_delete.c, dyn_insert.c, dyn_put.c: Use %p format for displaying pointers git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12444 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/dyn/ChangeLog b/src/util/dyn/ChangeLog index 4d509369d..3291488de 100644 --- a/src/util/dyn/ChangeLog +++ b/src/util/dyn/ChangeLog @@ -1,3 +1,8 @@ +2000-06-28 Ezra Peisach + + * dyn_create.c, dyn_delete.c, dyn_insert.c, dyn_put.c: Use %p + format for displaying pointers. + 2000-06-26 Ezra Peisach * dyn_realloc.c: Remove unused variable. diff --git a/src/util/dyn/dyn_create.c b/src/util/dyn/dyn_create.c index 6f3aa5077..42c0ff73c 100644 --- a/src/util/dyn/dyn_create.c +++ b/src/util/dyn/dyn_create.c @@ -77,7 +77,7 @@ int DynDestroy(obj) { if (obj->paranoid) { if (obj->debug) - fprintf(stderr, "dyn: destroy: zeroing %d bytes from %d.\n", + fprintf(stderr, "dyn: destroy: zeroing %d bytes from %p.\n", obj->el_size * obj->size, obj->array); memset(obj->array, 0, obj->el_size * obj->size); } diff --git a/src/util/dyn/dyn_delete.c b/src/util/dyn/dyn_delete.c index c696360ea..d8d93e54c 100644 --- a/src/util/dyn/dyn_delete.c +++ b/src/util/dyn/dyn_delete.c @@ -50,7 +50,7 @@ int DynDelete(obj, idx) else { if (obj->debug) fprintf(stderr, - "dyn: delete: copying %d bytes from %d + %d to + %d.\n", + "dyn: delete: copying %d bytes from %p + %d to + %d.\n", obj->el_size*(obj->num_el - idx), obj->array, (idx+1)*obj->el_size, idx*obj->el_size); @@ -66,7 +66,7 @@ int DynDelete(obj, idx) if (obj->paranoid) { if (obj->debug) fprintf(stderr, - "dyn: delete: zeroing %d bytes from %d + %d\n", + "dyn: delete: zeroing %d bytes from %p + %d\n", obj->el_size, obj->array, obj->el_size*(obj->num_el - 1)); memset(obj->array + obj->el_size*(obj->num_el - 1), 0, diff --git a/src/util/dyn/dyn_insert.c b/src/util/dyn/dyn_insert.c index 5654e935d..5cb6035b2 100644 --- a/src/util/dyn/dyn_insert.c +++ b/src/util/dyn/dyn_insert.c @@ -36,7 +36,7 @@ int DynInsert(obj, idx, els_in, num) } if (obj->debug) - fprintf(stderr,"dyn: insert: Moving %d bytes from %d + %d to + %d\n", + fprintf(stderr,"dyn: insert: Moving %d bytes from %p + %d to + %d\n", (obj->num_el-idx)*obj->el_size, obj->array, obj->el_size*idx, obj->el_size*(idx+num)); @@ -53,7 +53,7 @@ int DynInsert(obj, idx, els_in, num) #endif if (obj->debug) - fprintf(stderr, "dyn: insert: Copying %d bytes from %d to %d + %d\n", + fprintf(stderr, "dyn: insert: Copying %d bytes from %p to %p + %d\n", obj->el_size*num, els, obj->array, obj->el_size*idx); #ifdef HAVE_MEMMOVE diff --git a/src/util/dyn/dyn_put.c b/src/util/dyn/dyn_put.c index 50182533e..c2502c1d8 100644 --- a/src/util/dyn/dyn_put.c +++ b/src/util/dyn/dyn_put.c @@ -18,7 +18,7 @@ DynPtr DynArray(obj) DynObjectP obj; { if (obj->debug) - fprintf(stderr, "dyn: array: returning array pointer %d.\n", + fprintf(stderr, "dyn: array: returning array pointer %p.\n", obj->array); return obj->array; @@ -42,7 +42,7 @@ DynPtr DynGet(obj, num) } if (obj->debug) - fprintf(stderr, "dyn: get: Returning address %d + %d.\n", + fprintf(stderr, "dyn: get: Returning address %p + %d.\n", obj->array, obj->el_size*num); return (DynPtr) obj->array + obj->el_size*num; @@ -79,7 +79,7 @@ int DynPut(obj, el_in, idx) int ret; if (obj->debug) - fprintf(stderr, "dyn: put: Writing %d bytes from %d to %d + %d\n", + fprintf(stderr, "dyn: put: Writing %d bytes from %p to %p + %d\n", obj->el_size, el, obj->array, idx*obj->el_size); if ((ret = _DynResize(obj, idx)) != DYN_OK)