display GIT version on 7 digits as for GIT short number
@@ -196,12 +196,12 @@ static void snap_version(void *handle)
VERBOSE1("Min_DMA: %d)\n", (int)ioctl_data);
reg = snap_read64(handle, SNAP_M_CTX, SNAP_M_IVR);
- VERBOSE1("SNAP FPGA Release: v%d.%d.%d Distance: %d GIT: 0x%8.8x\n",
+ VERBOSE1("SNAP FPGA Release: v%d.%d.%d Distance: %d GIT: 0x%7.7x\n",
(int)(reg >> 56),
(int)(reg >> 48ll) & 0xff,
(int)(reg >> 40ll) & 0xff,
(int)(reg >> 32ull) & 0xff,
- (uint32_t)reg);
+ (uint32_t)(reg >> 4) & 0xfffffff;
reg = snap_read64(handle, SNAP_M_CTX, SNAP_M_BDR);
VERBOSE1("SNAP FPGA Build (Y/M/D): %04x/%02x/%02x Time (H:M): %02x:%02x\n",
