Loading...
libkern/c++/OSObject.cpp xnu-12377.101.15 xnu-11215.61.5
--- xnu/xnu-12377.101.15/libkern/c++/OSObject.cpp
+++ xnu/xnu-11215.61.5/libkern/c++/OSObject.cpp
@@ -136,8 +136,8 @@
 #else /* DEBUG */
 				// @@@ gvdl: eventually need to make this panic optional
 				// based on a boot argument i.e. debug= boot flag
-				panic("OSObject(%p)::refcount: "
-				    "About to wrap the reference count, reference leak?", this);
+				panic("OSObject::refcount: "
+				    "About to wrap the reference count, reference leak?");
 #endif /* !DEBUG */
 			}
 		}
@@ -152,7 +152,7 @@
 OSObject::taggedRetain(const void *tag) const
 {
 	if (!taggedTryRetain(tag)) {
-		panic("OSObject(%p)::refcount: Attempting to retain a freed object", this);
+		panic("OSObject::refcount: Attempting to retain a freed object");
 	}
 }
 
@@ -195,8 +195,8 @@
 #else /* DEBUG */
 				// @@@ gvdl: eventually need to make this panic optional
 				// based on a boot argument i.e. debug= boot flag
-				panic("OSObject(%p)::refcount: %s",
-				    "About to unreference a pegged object, reference leak?", this);
+				panic("OSObject::refcount: %s",
+				    "About to unreference a pegged object, reference leak?");
 #endif /* !DEBUG */
 			}
 		}
@@ -220,8 +220,8 @@
 // xxx - any code in the kernel could trip this,
 // xxx - and it applies as noted to all collections, not just the registry
 	if ((UInt16) actualCount < (actualCount >> 16)) {
-		panic("A kext releasing a(n) %s %p has corrupted the registry.",
-		    getClassName(this), this);
+		panic("A kext releasing a(n) %s has corrupted the registry.",
+		    getClassName(this));
 	}
 
 	// Check for a 'free' condition and that if we are first through