Skip to content

Commit 5c8492b

Browse files
committed
Fixed format specifier warning (-Wformat)
1 parent dee4c15 commit 5c8492b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sch/Placer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void Placer::elaborateSchematicInstance(int curr, int sub, bool debug) {
266266
currSch->totalArea += nextSch->totalArea;
267267
if (nextSch->isCell()) {
268268
currSch->pushCell(next, nextLay->box.size(), h+nextSch->totalArea/2);
269-
printf("hilbert %lu/%lu\n", currSch->hilbert.back(), currSch->totalArea);
269+
printf("hilbert %llu/%llu\n", currSch->hilbert.back(), currSch->totalArea);
270270
currSch->pushPorts(currCkt->inst[sub].ports, currSch->cells.size()-1);
271271
currSch->cellsToNets.insert(currSch->cellsToNets.end(), currCkt->inst[sub].ports.begin(), currCkt->inst[sub].ports.end());
272272
} else {
@@ -293,7 +293,7 @@ void Placer::elaborateSchematicInstance(int curr, int sub, bool debug) {
293293

294294
for (int j = 0; j+1 < (int)nextSch->cells.size(); j++) {
295295
currSch->pushCell(nextSch->subckts[j], nextSch->cellBounds[j], h+nextSch->hilbert[j]);
296-
printf("hilbert %lu/%lu\n", currSch->hilbert.back(), currSch->totalArea);
296+
printf("hilbert %llu/%llu\n", currSch->hilbert.back(), currSch->totalArea);
297297
for (size_t k = nextSch->cells[j]; k < nextSch->cells[j+1]; k++) {
298298
currSch->cellsToNets.push_back(currMap.map(nextSch->cellsToNets[k]));
299299
}
@@ -320,7 +320,7 @@ void Placer::elaborateSchematic(int curr, bool debug) {
320320
elaborateSchematicNets(curr, debug);
321321
vector<int> index = computeOrder(curr);
322322
for (auto i = index.begin(); i != index.end(); i++) {
323-
printf("next instance %s %lu\n", currCkt->inst[*i].name.c_str(), schem[currCkt->inst[*i].subckt].totalArea);
323+
printf("next instance %s %llu\n", currCkt->inst[*i].name.c_str(), schem[currCkt->inst[*i].subckt].totalArea);
324324
elaborateSchematicInstance(curr, *i, debug);
325325
}
326326
}
@@ -389,7 +389,7 @@ vector<cl_uint> Placer::computeOffsets(int curr, const vector<int> &index) {
389389
// position in ckt.inst -> hilbert position
390390
/*printf("offsets of cells {");
391391
for (int i = 0; i < (int)schem.size(); i++) {
392-
printf("%lu ", schem[i].totalArea);
392+
printf("%llu ", schem[i].totalArea);
393393
}
394394
printf("}\n");*/
395395

0 commit comments

Comments
 (0)