Fix printf formats
This commit is contained in:
parent
0106c3d299
commit
a4d2244300
@ -21,6 +21,7 @@
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <cinttypes>
|
||||
#include "cells.h"
|
||||
#include "design_utils.h"
|
||||
#include "log.h"
|
||||
@ -672,7 +673,7 @@ static void set_net_constant(const Context *ctx, NetInfo *orig, NetInfo *constne
|
||||
uc_init &= (1LL << uc_init_len) - 1;
|
||||
|
||||
if (ctx->verbose)
|
||||
log_info("%s lut config modified from 0x%lX to 0x%lX\n", ctx->nameOf(uc), it_param->second.intval,
|
||||
log_info("%s lut config modified from 0x%" PRIX64 " to 0x%" PRIX64 "\n", ctx->nameOf(uc), it_param->second.intval,
|
||||
uc_init);
|
||||
|
||||
it_param->second = Property(uc_init, uc_init_len);
|
||||
|
@ -246,7 +246,7 @@ struct GowinGlobalRouter
|
||||
IdStringList pin_func = gwu.get_pin_funcs(driver.cell->bel);
|
||||
for (size_t i = 0; i < pin_func.size(); ++i) {
|
||||
if (ctx->debug) {
|
||||
log_info("bel:%s, pin func: %lu:%s\n", ctx->nameOfBel(driver.cell->bel), i,
|
||||
log_info("bel:%s, pin func: %zu:%s\n", ctx->nameOfBel(driver.cell->bel), i,
|
||||
pin_func[i].str(ctx).c_str());
|
||||
}
|
||||
if (pin_func[i].str(ctx).rfind("GCLKT", 0) == 0) {
|
||||
|
@ -10,6 +10,8 @@
|
||||
#include "gowin_utils.h"
|
||||
#include "pack.h"
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
NEXTPNR_NAMESPACE_BEGIN
|
||||
|
||||
namespace {
|
||||
@ -881,7 +883,7 @@ struct GowinPacker
|
||||
uc_init &= (1LL << uc_init_len) - 1;
|
||||
|
||||
if (ctx->verbose && it_param->second.intval != uc_init)
|
||||
log_info("%s lut config modified from 0x%lX to 0x%lX\n", ctx->nameOf(uc),
|
||||
log_info("%s lut config modified from 0x%" PRIX64 " to 0x%" PRIX64 "\n", ctx->nameOf(uc),
|
||||
it_param->second.intval, uc_init);
|
||||
|
||||
it_param->second = Property(uc_init, uc_init_len);
|
||||
|
Loading…
Reference in New Issue
Block a user