diff --git a/src/bin/package/command_dump.cpp b/src/bin/package/command_dump.cpp index 8b625d3b6a..789c32c8ec 100644 --- a/src/bin/package/command_dump.cpp +++ b/src/bin/package/command_dump.cpp @@ -74,10 +74,12 @@ private: { switch (value.type) { case B_HPKG_ATTRIBUTE_TYPE_INT: - printf("%lld (%#llx)", value.signedInt, value.signedInt); + printf("%lld (%#llx)", (long long)value.signedInt, + (long long)value.signedInt); break; case B_HPKG_ATTRIBUTE_TYPE_UINT: - printf("%llu (%#llx)", value.unsignedInt, value.unsignedInt); + printf("%llu (%#llx)", (unsigned long long)value.unsignedInt, + (unsigned long long)value.unsignedInt); break; case B_HPKG_ATTRIBUTE_TYPE_STRING: printf("\"%s\"", value.string); @@ -85,12 +87,14 @@ private: case B_HPKG_ATTRIBUTE_TYPE_RAW: switch (value.encoding) { case B_HPKG_ATTRIBUTE_ENCODING_RAW_INLINE: - printf("data: size: %llu, inline", value.data.size); + printf("data: size: %llu, inline", + (unsigned long long)value.data.size); // TODO: Print the data bytes! break; case B_HPKG_ATTRIBUTE_ENCODING_RAW_HEAP: printf("data: size: %llu, offset: %llu", - value.data.size, value.data.offset); + (unsigned long long)value.data.size, + (unsigned long long)value.data.offset); break; default: break; diff --git a/src/bin/package/command_list.cpp b/src/bin/package/command_list.cpp index 9bd831c727..1d4187f033 100644 --- a/src/bin/package/command_list.cpp +++ b/src/bin/package/command_list.cpp @@ -45,7 +45,7 @@ struct PackageContentListHandler : BPackageContentHandler { // name and size printf("%-*s", indentation < 32 ? 32 - indentation : 0, entry->Name()); - printf(" %8llu", entry->Data().UncompressedSize()); + printf(" %8llu", (unsigned long long)entry->Data().UncompressedSize()); // time struct tm* time = localtime(&entry->ModifiedTime().tv_sec); @@ -89,7 +89,8 @@ struct PackageContentListHandler : BPackageContentHandler { int indentation = fLevel * 2; printf("%*s<", indentation, ""); printf("%-*s %8llu", indentation < 31 ? 31 - indentation : 0, - attribute->Name(), attribute->Data().UncompressedSize()); + attribute->Name(), + (unsigned long long)attribute->Data().UncompressedSize()); uint32 type = attribute->Type(); if (isprint(type & 0xff) && isprint((type >> 8) & 0xff)