Fix warnings
gpio.cpp:119:39: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] mailbox.c:66:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
This commit is contained in:
parent
0b586212b1
commit
5f716d7823
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ uint64_t clkgpio::GetPllFrequency(int PllNo)
|
|||
Freq = XOSC_FREQUENCY * ((uint64_t)gpioreg[PLLH_CTRL] & 0x3ff) + XOSC_FREQUENCY * (uint64_t)gpioreg[PLLH_FRAC] / (1 << 20);
|
||||
break;
|
||||
}
|
||||
fprintf(stderr, "Freq = %lld\n", Freq);
|
||||
fprintf(stderr, "Freq = %lu\n", Freq);
|
||||
|
||||
return Freq;
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ void *mapmem(unsigned base, unsigned size)
|
|||
printf("base=0x%x, mem=%p\n", base, mem);
|
||||
#endif
|
||||
if (mem == MAP_FAILED) {
|
||||
printf("mmap error %d\n", (int)mem);
|
||||
printf("mmap error %p\n", mem);
|
||||
exit (-1);
|
||||
}
|
||||
close(mem_fd);
|
||||
|
|
Loading…
Reference in a new issue