lattice: fix typo / warning

This commit is contained in:
Gwenhael Goavec-Merou 2023-10-23 07:12:45 +02:00
parent fc35045c95
commit 988bedefb6
1 changed files with 2 additions and 2 deletions

View File

@ -1038,7 +1038,7 @@ void Lattice::displayReadReg(uint64_t dev)
uint8_t err;
printf("displayReadReg\n");
if (dev & 1<<0) printf("\tTRAN Mode\n");
printf("\tConfig Target Selection : %x\n", (dev >> 1) & 0x07);
printf("\tConfig Target Selection : %lx\n", (dev >> 1) & 0x07);
if (dev & 1<<4) printf("\tJTAG Active\n");
if (dev & 1<<5) printf("\tPWD Protect\n");
if (dev & 1<<6) printf("\tOTP\n");