Loading...
--- Libc/Libc-262/gen/zone.c
+++ Libc/Libc-391/gen/zone.c
@@ -3,19 +3,20 @@
*
* @APPLE_LICENSE_HEADER_START@
*
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License"). You may not use this file except in compliance with the
- * License. Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
*
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
*
* @APPLE_LICENSE_HEADER_END@
*/
@@ -62,18 +63,18 @@
NXZone *NXZoneFromPtr(void *ptr) {
NXZone *zone = malloc_zone_from_ptr(ptr);
if (!zone) {
- fprintf(stderr, "*** malloc[%d]: NXZoneFromPtr() did not find any zone for %p; returning default\n", getpid(), ptr);
+ malloc_printf("*** NXZoneFromPtr() did not find any zone for %p; returning default\n", ptr);
zone = NX_NOZONE;
}
return zone;
}
void NXAddRegion(void *start, size_t size, malloc_zone_t *zone) {
- fprintf(stderr, "*** malloc[%d]: OBSOLETE: NXAddRegion()\n", getpid());
+ malloc_printf("*** OBSOLETE: NXAddRegion()\n");
}
void NXRemoveRegion(void *start) {
- fprintf(stderr, "*** malloc[%d]: OBSOLETE: NXRemoveRegion()\n", getpid());
+ malloc_printf("*** OBSOLETE: NXRemoveRegion()\n");
}
void NXZonePtrInfo(void *ptr) {
@@ -94,13 +95,13 @@
void NXMergeZone(malloc_zone_t *z) {
static char warned = 0;
if (!warned) {
- fprintf(stderr, "*** malloc[%d]: NXMergeZone() now obsolete, does nothing\n", getpid());
+ malloc_printf("*** NXMergeZone() now obsolete, does nothing\n");
warned = 1;
}
}
boolean_t NXProtectZone(malloc_zone_t *zone, int protection) {
- fprintf(stderr, "*** malloc[%d]: NXProtectZone() is obsolete\n", getpid());
+ malloc_printf("*** NXProtectZone() is obsolete\n");
return 0;
}
@@ -108,13 +109,13 @@
// We can not remove this one as it is still used by IndexingKit
static char warned = 0;
if (!warned) {
- fprintf(stderr, "*** malloc[%d]: NXCreateChildZone() now obsolete, has been defined to create new zone\n", getpid());
+ malloc_printf("*** NXCreateChildZone() now obsolete, has been defined to create new zone\n");
warned = 1;
}
return NXCreateZone(startsize, granularity, canfree);
}
void _NXMallocDumpFrees(void) {
- fprintf(stderr, "*** malloc[%d]: OBSOLETE: _NXMallocDumpFrees()\n", getpid());
+ malloc_printf("*** OBSOLETE: _NXMallocDumpFrees()\n");
}