| ... | ... | @@ -102,7 +102,6 @@ pub fn calcAdhocSignature(self: *CodeSignature, bin_file: *const MachO) !void { |
| 102 | 102 | }; |
| 103 | 103 | |
| 104 | 104 | const total_pages = mem.alignForward(file_size, page_size) / page_size; |
| 105 | | log.debug("Total file size: {}; total number of pages: {}\n", .{ file_size, total_pages }); |
| 106 | 105 | |
| 107 | 106 | var hash: [hash_size]u8 = undefined; |
| 108 | 107 | var buffer = try bin_file.base.allocator.alloc(u8, page_size); |
| ... | ... | @@ -129,7 +128,6 @@ pub fn calcAdhocSignature(self: *CodeSignature, bin_file: *const MachO) !void { |
| 129 | 128 | assert(fsize <= len); |
| 130 | 129 | |
| 131 | 130 | Sha256.hash(buffer[0..fsize], &hash, .{}); |
| 132 | | log.debug("Calculated hash for page 0x{x}-0x{x}: 0x{x}\n", .{ fstart, fstart + fsize, hash[0..] }); |
| 133 | 131 | |
| 134 | 132 | cdir.data.appendSliceAssumeCapacity(hash[0..]); |
| 135 | 133 | cdir.inner.nCodeSlots += 1; |