From a85e46496d237d2d8cbc980b120e5b2090e507c0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 3 Jul 2013 23:13:09 +0200 Subject: [PATCH] package_repo: fix printf() format strings --- src/bin/package_repo/command_create.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/bin/package_repo/command_create.cpp b/src/bin/package_repo/command_create.cpp index d4bf2ba694..e47ff76d3e 100644 --- a/src/bin/package_repo/command_create.cpp +++ b/src/bin/package_repo/command_create.cpp @@ -68,7 +68,7 @@ public: return; printf("----- Repository Info Section --------------------\n"); - printf("repository info size: %10lu (uncompressed)\n", + printf("repository info size: %10" B_PRIu32 " (uncompressed)\n", uncompressedSize); } @@ -79,8 +79,8 @@ public: return; printf("----- Package Attribute Section -------------------\n"); - printf("string count: %10lu\n", stringCount); - printf("package attributes size: %10lu (uncompressed)\n", + printf("string count: %10" B_PRIu32 "\n", stringCount); + printf("package attributes size: %10" B_PRIu32 " (uncompressed)\n", uncompressedSize); } @@ -93,13 +93,15 @@ public: printf("----- Package Repository Info -----\n"); if (fVerbose) - printf("embedded license count %10lu\n", licenseCount); - printf("package count %10lu\n", packageCount); + printf("embedded license count %10" B_PRIu32 "\n", licenseCount); + printf("package count %10" B_PRIu32 "\n", packageCount); printf("-----------------------------------\n"); - printf("header size: %10lu\n", headerSize); - printf("repository header size: %10lu\n", repositoryInfoSize); - printf("package attributes size: %10lu\n", packageAttributesSize); - printf("total size: %10llu\n", totalSize); + printf("header size: %10" B_PRIu32 "\n", headerSize); + printf("repository header size: %10" B_PRIu32 "\n", + repositoryInfoSize); + printf("package attributes size: %10" B_PRIu32 "\n", + packageAttributesSize); + printf("total size: %10" B_PRIu64 "\n", totalSize); printf("-----------------------------------\n"); }