Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>2017-01-09 12:19:32 +0300
committermadmonkey <madfkingmonkey@gmail.com>2017-01-10 01:19:13 +0300
commit5bde178d52e6710bd79157d48f803abb9c5f31c4 (patch)
tree6c91c2dd22c59867a703e1ea3d84b75ec481d599 /hakchi-gui
parent26790de486d7af3a7de85aebdd6695aacb037e4f (diff)
Fix warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
Diffstat (limited to 'hakchi-gui')
-rw-r--r--hakchi-gui/src/fel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/hakchi-gui/src/fel.cpp b/hakchi-gui/src/fel.cpp
index 67387b8..a6bc9d1 100644
--- a/hakchi-gui/src/fel.cpp
+++ b/hakchi-gui/src/fel.cpp
@@ -258,7 +258,7 @@ size_t Fel::readFlash(uint32_t addr,size_t size,void*buf)
return 0;
}
char cmd[1024];
- sprintf(cmd,"sunxi_flash phy_read %x %x %x;%s",flash_mem_base,addr/sector_size,(size+addr%sector_size+sector_size-1)/sector_size,fastboot);
+ sprintf(cmd,"sunxi_flash phy_read %x %x %zx;%s",flash_mem_base,addr/sector_size,(size+addr%sector_size+sector_size-1)/sector_size,fastboot);
if(runUbootCmd(cmd))
{
return readMemory(flash_mem_base+addr%sector_size,size,buf);
@@ -291,7 +291,7 @@ size_t Fel::writeFlash(uint32_t addr,size_t size,void*buf)
if(writeMemory(flash_mem_base,size,buf)==size)
{
char cmd[1024];
- sprintf(cmd,"sunxi_flash phy_write %x %x %x;%s",flash_mem_base,addr/sector_size,size/sector_size,fastboot);
+ sprintf(cmd,"sunxi_flash phy_write %x %x %zx;%s",flash_mem_base,addr/sector_size,size/sector_size,fastboot);
if(runUbootCmd(cmd))
return size;
}