aboutsummaryrefslogtreecommitdiff
path: root/icepack
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2024-06-24 15:10:57 +0200
committerGitHub <noreply@github.com>2024-06-24 15:10:57 +0200
commit738af822905fdcf0466e9dd784b9ae4b0b34987f (patch)
tree40b0aa97bb567318a7f1b587e00396d21acd527f /icepack
parentc23e99c484aa7c5703905d07694adfc710afcf3e (diff)
parentb171bdf66581e608fe3f3d06de055305626a306a (diff)
Merge pull request #335 from maribu/icebram/fix-format-specifiers
icebram,icepack: use correct format specifiers for size
Diffstat (limited to 'icepack')
-rw-r--r--icepack/icepack.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/icepack/icepack.cc b/icepack/icepack.cc
index 565d5f9..1bac258 100644
--- a/icepack/icepack.cc
+++ b/icepack/icepack.cc
@@ -902,10 +902,10 @@ void FpgaConfig::write_ascii(std::ostream &ofs) const
cic.get_cram_index(bit_x, bit_y, cram_bank, cram_x, cram_y);
tile_bits.insert(tile_bit_t(cram_bank, cram_x, cram_y));
if (cram_x > int(this->cram[cram_bank].size())) {
- error("cram_x %d (bit %d, %d) larger than bank size %lu\n", cram_x, bit_x, bit_y, this->cram[cram_bank].size());
+ error("cram_x %d (bit %d, %d) larger than bank size %zu\n", cram_x, bit_x, bit_y, this->cram[cram_bank].size());
}
if (cram_y > int(this->cram[cram_bank][cram_x].size())) {
- error("cram_y %d (bit %d, %d) larger than bank %d size %lu\n", cram_y, bit_x, bit_y, cram_bank, this->cram[cram_bank][cram_x].size());
+ error("cram_y %d (bit %d, %d) larger than bank %d size %zu\n", cram_y, bit_x, bit_y, cram_bank, this->cram[cram_bank][cram_x].size());
}
ofs << (this->cram[cram_bank][cram_x][cram_y] ? '1' : '0');
}
@@ -924,11 +924,11 @@ void FpgaConfig::write_ascii(std::ostream &ofs) const
int bram_bank, bram_x, bram_y;
bic.get_bram_index(bit_x+i, bit_y, bram_bank, bram_x, bram_y);
if (bram_x >= int(this->bram[bram_bank].size())) {
- error("%d %d bram_x %d higher than loaded bram size %lu\n",bit_x+i, bit_y, bram_x, this->bram[bram_bank].size());
+ error("%d %d bram_x %d higher than loaded bram size %zu\n",bit_x+i, bit_y, bram_x, this->bram[bram_bank].size());
break;
}
if (bram_y >= int(this->bram[bram_bank][bram_x].size())) {
- error("bram_y %d higher than loaded bram size %lu\n", bram_y, this->bram[bram_bank][bram_x].size());
+ error("bram_y %d higher than loaded bram size %zu\n", bram_y, this->bram[bram_bank][bram_x].size());
break;
}
if (this->bram[bram_bank][bram_x][bram_y])