$NetBSD: patch-ab,v 1.6 2002/11/26 21:39:14 cjep Exp $
--- pngtest.c.orig	Thu Oct  3 13:32:30 2002
+++ pngtest.c	Mon Nov  4 14:44:39 2002
@@ -567,7 +567,7 @@
          }
          if (pinfo->next == NULL)
          {
-            fprintf(STDERR, "Pointer %x not found\n", (unsigned int)ptr);
+            fprintf(STDERR, "Pointer %p not found\n", ptr);
             break;
          }
          ppinfo = &pinfo->next;
@@ -1422,8 +1422,8 @@
                current_allocation);
             while (pinfo != NULL)
             {
-               fprintf(STDERR, " %lu bytes at %x\n", pinfo->size, 
-                 (unsigned int) pinfo->pointer);
+               fprintf(STDERR, " %lu bytes at %p\n", pinfo->size, 
+                 pinfo->pointer);
                pinfo = pinfo->next;
             }
          }
@@ -1497,8 +1497,8 @@
                 current_allocation);
              while (pinfo != NULL)
              {
-                fprintf(STDERR," %lu bytes at %x\n",
-                   pinfo->size, (unsigned int)pinfo->pointer);
+                fprintf(STDERR," %lu bytes at %p\n", pinfo->size,
+		  pinfo->pointer);
                 pinfo = pinfo->next;
              }
           }
