Skip to content

Commit

Permalink
sdb: include minor version in verbose output.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericonr committed Jun 12, 2024
1 parent 88270f5 commit 582aa32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/sdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ std::optional<struct sdb_device_info> read_sdb(struct pcie_bars *bars, device_ma

bool print_sdb(const struct sdb_device_info &devinfo)
{
fprintf(stdout, "id %08jx vendor %016jx version %04x addr %08jx\n",
fprintf(stdout, "id %08jx vendor %016jx version %04x.%04x addr %08jx\n",
(uintmax_t)devinfo.device_id, (uintmax_t)devinfo.vendor_id,
(unsigned)devinfo.abi_ver_major, (uintmax_t)devinfo.start_addr);
(unsigned)devinfo.abi_ver_major, (unsigned)devinfo.abi_ver_minor,
(uintmax_t)devinfo.start_addr);
return false;
}

Expand Down

0 comments on commit 582aa32

Please sign in to comment.