Skip to content

Commit daa8f26

Browse files
committed
altera: fix 64 bits hex display (PRIx64)
1 parent 2030920 commit daa8f26

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/altera.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "altera.hpp"
77

8+
#include <inttypes.h>
89
#include <string.h>
910

1011
#include <map>
@@ -1070,8 +1071,8 @@ bool Altera::agilex_poll_status(uint64_t *expected, uint64_t *mask,
10701071
_jtag->toggleClk(agilex_toggle_length);
10711072
uint64_t res = uintStarTo64(status) & 0x3FFFFFFFF;
10721073
if (_verbose) {
1073-
printf("%2d/%3d: 0x%08lx 0x%08lx %08lx ", check, i,
1074-
res, res & msk, exp & msk);
1074+
printf("%2d/%3d: 0x%08" PRIx64 "0x%08" PRIx64 "%08" PRIx64 " ",
1075+
check, i, res, res & msk, exp & msk);
10751076
for (int a = 0; a < 5; a++)
10761077
printf("%02x ", status[a]);
10771078
printf("\n");

src/board.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static std::map <std::string, target_board_t> board_list = {
113113
JTAG_BOARD("ac701", "xc7a200tfbg676", "digilent", SPI_FLASH, 0, 0, CABLE_DEFAULT),
114114
JTAG_BOARD("acornCle215", "xc7a200tsbg484", "", SPI_FLASH, 0, 0, CABLE_DEFAULT),
115115
JTAG_BOARD("analogMax", "", "ft2232", SPI_FLASH, 0, 0, CABLE_DEFAULT),
116-
JTAG_BOARD("atumA3Nano" "", "usb-blasterIII", SPI_FLASH, 0, 0, CABLE_DEFAULT),
117-
JTAG_BOARD("axe5000" "", "usb-blasterIII", SPI_FLASH, 0, 0, CABLE_DEFAULT),
116+
JTAG_BOARD("atumA3Nano", "", "usb-blasterIII", SPI_FLASH, 0, 0, CABLE_DEFAULT),
117+
JTAG_BOARD("axe5000", "", "usb-blasterIII", SPI_FLASH, 0, 0, CABLE_DEFAULT),
118118
JTAG_BOARD("litex-acorn-baseboard-mini", "xc7a200tsbg484", "", SPI_FLASH, 0, 0, CABLE_DEFAULT),
119119
JTAG_BOARD("alchitry_au", "xc7a35tftg256", "ft2232", SPI_FLASH, 0, 0, CABLE_DEFAULT),
120120
JTAG_BOARD("alchitry_au_plus","xc7a100tftg256", "ft2232", SPI_FLASH, 0, 0, CABLE_DEFAULT),

0 commit comments

Comments
 (0)