]> err.no Git - sope/blobdiff - Recycler/NGJavaScript/NGJavaScriptRuntime.m
use %p for pointer formats
[sope] / Recycler / NGJavaScript / NGJavaScriptRuntime.m
index 5bdf9b6cb69f710dec237861aa8977b43bf5cc4a..16ae80d726b3efddbd8c6bc55186422c8e6808f7 100644 (file)
@@ -106,7 +106,7 @@ static void rootDumper(const char *name, void *rp, void *data)
      __attribute__((unused));
 
 static void rootDumper(const char *name, void *rp, void *data) {
-  printf("ROOT: %s rp=0x%08X rt=0x%08X\n", name, (unsigned)rp, (unsigned)data);
+  printf("ROOT: %s rp=0x%p rt=0x%p\n", name, (unsigned)rp, (unsigned)data);
 }
 
 - (void)dumpNamedRoots {
@@ -151,7 +151,7 @@ static void rootDumper(const char *name, void *rp, void *data) {
 
 - (NSString *)description {
   return [NSString stringWithFormat:
-                     @"<%@[0x%08X]: handle=0x%08X>",
+                     @"<%@[0x%p]: handle=0x%p>",
                      NSStringFromClass([self class]), self,
                      [self handle]
                    ];