|
4 | 4 | #include <iostream>
|
5 | 5 | #include <cstdio>
|
6 | 6 | #include <filesystem>
|
| 7 | +#include <cinttypes> |
7 | 8 |
|
8 | 9 | #include "3rdparty/cxxopts.hpp"
|
9 | 10 | #include "3rdparty/date.hpp"
|
@@ -98,9 +99,9 @@ void PrintImports(XEXFile& xex) {
|
98 | 99 | {
|
99 | 100 | auto& table_header = tables.at(libname);
|
100 | 101 |
|
101 |
| - printf("# %s v%d.%d.%d.%d\n# (min v%d.%d.%d.%d, %llu imports)\n", libname.c_str(), |
| 102 | + printf("# %s v%d.%d.%d.%d\n# (min v%d.%d.%d.%d, %d imports)\n", libname.c_str(), |
102 | 103 | table_header.Version.Major, table_header.Version.Minor, table_header.Version.Build, table_header.Version.QFE,
|
103 |
| - table_header.VersionMin.Major, table_header.VersionMin.Minor, table_header.VersionMin.Build, table_header.VersionMin.QFE, lib.second.size()); |
| 104 | + table_header.VersionMin.Major, table_header.VersionMin.Minor, table_header.VersionMin.Build, table_header.VersionMin.QFE, int(lib.second.size())); |
104 | 105 |
|
105 | 106 | version = table_header.Version.Build;
|
106 | 107 | }
|
@@ -603,13 +604,13 @@ void PrintInfo(XEXFile& xex, bool print_mem_pages)
|
603 | 604 | // TODO: print these as strings!
|
604 | 605 | if (time_range)
|
605 | 606 | {
|
606 |
| - printf(" Start Date: %llX\n", (uint64_t)time_range->Start); |
607 |
| - printf(" End Date: %llX\n", (uint64_t)time_range->End); |
| 607 | + printf(" Start Date: %" PRIX64 "\n", (uint64_t)time_range->Start); |
| 608 | + printf(" End Date: %" PRIX64 "\n", (uint64_t)time_range->End); |
608 | 609 | }
|
609 | 610 | if (kv_privs)
|
610 | 611 | {
|
611 |
| - printf(" KeyVault Mask: %llX\n", (uint64_t)kv_privs->Mask); |
612 |
| - printf(" KeyVault Value: %llX\n", (uint64_t)kv_privs->Match); |
| 612 | + printf(" KeyVault Mask: %" PRIX64 "\n", (uint64_t)kv_privs->Mask); |
| 613 | + printf(" KeyVault Value: %" PRIX64 "\n", (uint64_t)kv_privs->Match); |
613 | 614 | }
|
614 | 615 | // TODO: consoleID table
|
615 | 616 | }
|
@@ -896,15 +897,15 @@ int main(int argc, char* argv[])
|
896 | 897 |
|
897 | 898 | if (!result.count("positional"))
|
898 | 899 | {
|
899 |
| - printf(options.help().c_str()); |
| 900 | + printf("%s", options.help().c_str()); |
900 | 901 | return 0;
|
901 | 902 | }
|
902 | 903 |
|
903 | 904 | auto& positional = result["positional"].as<std::vector<std::string>>();
|
904 | 905 |
|
905 | 906 | if (!positional.size())
|
906 | 907 | {
|
907 |
| - printf(options.help().c_str()); |
| 908 | + printf("%s", options.help().c_str()); |
908 | 909 | return 0;
|
909 | 910 | }
|
910 | 911 |
|
|
0 commit comments