fixes to small test tools to compile cleanly (#67)

* fixes to small test tools to compile cleanly

* Another small change to allow -DENABLE_TESTS to compile on osmc with qt5
This commit is contained in:
penfold42
2016-06-29 05:53:28 +10:00
committed by brindosch
parent 917dc26fd5
commit fda861a1c1
3 changed files with 5 additions and 5 deletions

View File

@@ -143,7 +143,7 @@ void setup_io()
);
if ((long)gpio_map < 0) {
printf("mmap error %d\n", (int)gpio_map);
printf("mmap error %d\n", (long)gpio_map);
exit (-1);
}
gpio = (volatile unsigned *)gpio_map;
@@ -169,7 +169,7 @@ void setup_io()
printf("SPI mapped from 0x%p to 0x%p\n",SPI0_BASE,spi0_map);
if ((long)spi0_map < 0) {
printf("mmap error %d\n", (int)spi0_map);
printf("mmap error %d\n", (long)spi0_map);
exit (-1);
}
spi0 = (volatile unsigned *)spi0_map;