From: Tormod Volden <debian.tor...@gmail.com> Also remove unused debug code.
Signed-off-by: Tormod Volden <debian.tor...@gmail.com> --- Hi, This patch, and two patches previously posted, main: List alternate interfaces in DFU mode main: Simplify --detach handling by reusing existing code are also available on https://gitorious.org/~tormod/unofficial-clones/dfuse-dfu-util/commits/master-patches Regards, Tormod src/dfuse_mem.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dfuse_mem.c b/src/dfuse_mem.c index 379d6fd..395070b 100644 --- a/src/dfuse_mem.c +++ b/src/dfuse_mem.c @@ -76,6 +76,9 @@ void free_segment_list(struct memsegment *segment_list) free(segment_list); } +/* Parse memory map from interface descriptor string + * encoded as per ST document UM0424 section 4.3.2. + */ struct memsegment *parse_memory_layout(char *intf_desc) { @@ -90,9 +93,6 @@ struct memsegment *parse_memory_layout(char *intf_desc) struct memsegment *segment_list = NULL; struct memsegment segment; -#ifdef DEBUG_DRY - intf_desc = "@fake /0x08000000/12*001Ka,11*001Kg,9*2Ka,24*4Kg"; -#endif name = malloc(strlen(intf_desc)); if (!name) { fprintf(stderr, "Error: Cannot allocate memory\n"); -- 1.7.5.4 _______________________________________________ devel mailing list devel@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/devel