Fix printf formats

This commit is contained in:
uis 2023-11-11 17:37:20 +03:00 committed by myrtle
parent 0106c3d299
commit a4d2244300
3 changed files with 6 additions and 3 deletions

View File

@ -21,6 +21,7 @@
#include <algorithm> #include <algorithm>
#include <iostream> #include <iostream>
#include <iterator> #include <iterator>
#include <cinttypes>
#include "cells.h" #include "cells.h"
#include "design_utils.h" #include "design_utils.h"
#include "log.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; uc_init &= (1LL << uc_init_len) - 1;
if (ctx->verbose) 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); uc_init);
it_param->second = Property(uc_init, uc_init_len); it_param->second = Property(uc_init, uc_init_len);

View File

@ -246,7 +246,7 @@ struct GowinGlobalRouter
IdStringList pin_func = gwu.get_pin_funcs(driver.cell->bel); IdStringList pin_func = gwu.get_pin_funcs(driver.cell->bel);
for (size_t i = 0; i < pin_func.size(); ++i) { for (size_t i = 0; i < pin_func.size(); ++i) {
if (ctx->debug) { 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()); pin_func[i].str(ctx).c_str());
} }
if (pin_func[i].str(ctx).rfind("GCLKT", 0) == 0) { if (pin_func[i].str(ctx).rfind("GCLKT", 0) == 0) {

View File

@ -10,6 +10,8 @@
#include "gowin_utils.h" #include "gowin_utils.h"
#include "pack.h" #include "pack.h"
#include <cinttypes>
NEXTPNR_NAMESPACE_BEGIN NEXTPNR_NAMESPACE_BEGIN
namespace { namespace {
@ -881,7 +883,7 @@ struct GowinPacker
uc_init &= (1LL << uc_init_len) - 1; uc_init &= (1LL << uc_init_len) - 1;
if (ctx->verbose && it_param->second.intval != uc_init) 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.intval, uc_init);
it_param->second = Property(uc_init, uc_init_len); it_param->second = Property(uc_init, uc_init_len);