mixed:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz free:1048320
mixed:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz free:1048320 freenew:0
mixed:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz free:1048320 freechild:1048508
-Child: 0
+Child: IS NULL
lc:abcdefghijklmnopqrstuvwxyz uc:ABCDEFGHIJKLMNOPQRSTUVWXYZ free:1048500
lc:abcdefghijklmnopqrstuvwxyz free:1048536
uc:ABCDEFGHIJKLMNOPQRSTUVWXYZ free:1048500
mixed:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz free:1048336
mixed:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz free:1048336 freenew:0
mixed:ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz free:1048336 freechild:1048512
-Child: 0
+Child: IS NULL
tlog(TL_CRIT|TL_EXIT, "FDBPut failed: %d", rc);
}
tfree(record);
- printf("Put: off:%d len:%d '%s'\n", (int)offset, len-RECHDRSZ, optarg);
+ printf("Put: off:%d len:%d '%s'\n", (int)offset, (int)(len-RECHDRSZ), optarg);
break;
case 'g':
if (!isopened) {usage();}
FDBClose(&db);
tlog(TL_CRIT|TL_EXIT, "FDBGet failed: %d", rc);
}
- printf("Get: off:%d len:%d '", (int)offset, record->length - RECHDRSZ);
+ printf("Get: off:%d len:%d '", (int)offset, (int)(record->length - RECHDRSZ));
fwrite(record->data, record->length - RECHDRSZ, 1, stdout);
puts("'");
tfree(record);
if ( db.listcur ) {
puts("List of free space:");
for(i=0;i<db.listcur;i++)
- printf("\toff: %d\t len: %d\n", (int)(db.space[i].offset), db.space[i].length);
+ printf("\toff: %d\t len: %d\n", (int)(db.space[i].offset), (int)(db.space[i].length));
} else
puts("List of free space is void");
break;
ptr1 = mcstrdup(base, ptr);
strupper(ptr1);
- printf("lc:%s uc:%s free:%d\n", ptr, ptr1, base->chunk->freesize);
+ printf("lc:%s uc:%s free:%d\n", ptr, ptr1, (int)base->chunk->freesize);
mcfree(ptr1);
- printf("lc:%s free:%d\n", ptr, base->chunk->freesize);
+ printf("lc:%s free:%d\n", ptr, (int)base->chunk->freesize);
ptr1 = mcstrdup(base, ptr);
mcfree(ptr);
strupper(ptr1);
- printf("uc:%s free:%d\n", ptr1, base->chunk->freesize);
+ printf("uc:%s free:%d\n", ptr1, (int)base->chunk->freesize);
ptr= mcstrdup(base, ptr1);
strlower(ptr);
ptr1 =mcrealloc(ptr1, 60);
strcat(ptr1, ptr);
- printf("mixed:%s free:%d\n", ptr1, base->chunk->freesize);
+ printf("mixed:%s free:%d\n", ptr1, (int)base->chunk->freesize);
ptr = mcrealloc(ptr1, 59);
tassert( ptr==ptr1 );
- printf("mixed:%s free:%d\n", ptr, base->chunk->freesize);
+ printf("mixed:%s free:%d\n", ptr, (int)base->chunk->freesize);
ptr = mcrealloc(ptr1, 120);
tassert( ptr==ptr1 );
- printf("mixed:%s free:%d\n", ptr, base->chunk->freesize);
+ printf("mixed:%s free:%d\n", ptr, (int)base->chunk->freesize);
ptr1 = mcalloc(base, CNTXCHUNK);
strcpy(ptr1, ptr);
- printf("mixed:%s free:%d freenew:%d\n", ptr1, base->chunk->freesize, base->chunk->next->freesize);
+ printf("mixed:%s free:%d freenew:%d\n", ptr1, (int)base->chunk->freesize, (int)base->chunk->next->freesize);
ptr1= mcstrdup(child, ptr);
- printf("mixed:%s free:%d freechild:%d\n", ptr1, base->chunk->freesize, child->chunk->freesize);
+ printf("mixed:%s free:%d freechild:%d\n", ptr1, (int)base->chunk->freesize, (int)child->chunk->freesize);
freeMemoryContext(child);
- printf("Child: %d\n", (int)(base->child));
+ printf("Child: IS %sNULL\n", (base->child == NULL) ? "" : "NOT ");
child = allocMemoryContext(base, flags);
freeMemoryContext(base);