Fixed printf() format related warnings.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
* Copyright 2009-2011, Ingo Weinhold, [email protected].
|
||||||
* Copyright 2011, Oliver Tappe <[email protected]>
|
* Copyright 2011, Oliver Tappe <[email protected]>
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
|
|
||||||
@@ -53,11 +54,11 @@ public:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
printf("----- TOC Info -----------------------------------\n");
|
printf("----- TOC Info -----------------------------------\n");
|
||||||
printf("cached strings size: %10llu (uncompressed)\n",
|
printf("cached strings size: %10" B_PRIu64 " (uncompressed)\n",
|
||||||
uncompressedStringsSize);
|
uncompressedStringsSize);
|
||||||
printf("TOC main size: %10llu (uncompressed)\n",
|
printf("TOC main size: %10" B_PRIu64 " (uncompressed)\n",
|
||||||
uncompressedMainSize);
|
uncompressedMainSize);
|
||||||
printf("total TOC size: %10llu (uncompressed)\n",
|
printf("total TOC size: %10" B_PRIu64 " (uncompressed)\n",
|
||||||
uncompressedTOCSize);
|
uncompressedTOCSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -68,8 +69,8 @@ public:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
printf("----- Package Attribute Info ---------------------\n");
|
printf("----- Package Attribute Info ---------------------\n");
|
||||||
printf("string count: %10lu\n", stringCount);
|
printf("string count: %10" B_PRIu32 "\n", stringCount);
|
||||||
printf("package attributes size: %10lu (uncompressed)\n",
|
printf("package attributes size: %10" B_PRIu32 " (uncompressed)\n",
|
||||||
uncompressedSize);
|
uncompressedSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,11 +81,12 @@ public:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
printf("----- Package Info ----------------\n");
|
printf("----- Package Info ----------------\n");
|
||||||
printf("header size: %10lu\n", headerSize);
|
printf("header size: %10" B_PRIu32 "\n", headerSize);
|
||||||
printf("heap size: %10llu\n", heapSize);
|
printf("heap size: %10" B_PRIu64 "\n", heapSize);
|
||||||
printf("TOC size: %10llu\n", tocSize);
|
printf("TOC size: %10" B_PRIu64 "\n", tocSize);
|
||||||
printf("package attributes size: %10lu\n", packageAttributesSize);
|
printf("package attributes size: %10" B_PRIu32 "\n",
|
||||||
printf("total size: %10llu\n", totalSize);
|
packageAttributesSize);
|
||||||
|
printf("total size: %10" B_PRIu64 "\n", totalSize);
|
||||||
printf("-----------------------------------\n");
|
printf("-----------------------------------\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
* Copyright 2009-2011, Ingo Weinhold, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include <package/hpkg/PackageContentHandler.h>
|
#include <package/hpkg/PackageContentHandler.h>
|
||||||
#include <package/hpkg/PackageEntry.h>
|
#include <package/hpkg/PackageEntry.h>
|
||||||
@@ -96,7 +97,7 @@ struct PackageContentListHandler : BPackageContentHandler {
|
|||||||
printf(" '%c%c%c%c'", int(type >> 24), int((type >> 16) & 0xff),
|
printf(" '%c%c%c%c'", int(type >> 24), int((type >> 16) & 0xff),
|
||||||
int((type >> 8) & 0xff), int(type & 0xff));
|
int((type >> 8) & 0xff), int(type & 0xff));
|
||||||
} else
|
} else
|
||||||
printf(" %#lx", type);
|
printf(" %#" B_PRIx32, type);
|
||||||
|
|
||||||
printf(">\n");
|
printf(">\n");
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user