summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-11-12 18:33:46 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-11-13 18:25:00 +0100
commit12862df624c0b5ee01845b21e3b480c6c68f7300 (patch)
treebff083b32e8dc32711560875630ba2ccdfefcbc1 /utils
parent01c4f0075a197738e7512b6fc9170928c4758ff5 (diff)
downloadrockbox-12862df624c0b5ee01845b21e3b480c6c68f7300.tar.gz
rockbox-12862df624c0b5ee01845b21e3b480c6c68f7300.tar.bz2
rockbox-12862df624c0b5ee01845b21e3b480c6c68f7300.zip
emmctools: add debug statements
Change-Id: I9a15c347cfaab821b0cfc01744c5b6b8267c40ea
Diffstat (limited to 'utils')
-rw-r--r--utils/nwztools/emmctools/nvp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/nwztools/emmctools/nvp.c b/utils/nwztools/emmctools/nvp.c
index 3adf61f621..c679c1098b 100644
--- a/utils/nwztools/emmctools/nvp.c
+++ b/utils/nwztools/emmctools/nvp.c
@@ -263,6 +263,7 @@ int nvp_get_sector_number(int shadow, int area, int zone, int index)
return -1;
}
uint8_t *ptr = shadow ? nvp_shadow : nvp_table;
+ //cprintf(GREY, "[offset: 0x%x]", area * NVP_AREA_TABLE_SIZE + (start + index) * 4);
uint32_t sector = *(uint32_t *)&ptr[area * NVP_AREA_TABLE_SIZE + (start + index) * 4];
if(sector == 0)
return 0;
@@ -291,7 +292,7 @@ int nvp_read_data(int shadow, int area, int zone, int offset, void *buf, int siz
if(sec_cluster == 0)
break;
int read = MIN(size, unit_size - unit_offset);
- //cprintf(GREY, "[sec_cluster=%d read=%d]", sec_cluster, read);
+ //cprintf(GREY, "[sec_cluster=%d unit_size=%d read=%d]", sec_cluster, unit_size, read);
int ret = nvp_read(sec_cluster * unit_size, read, buf);
if(ret)
return ret;