From: Artem Bityutskiy Date: Thu, 1 Nov 2012 14:16:33 +0000 (+0200) Subject: bmap-creator: print a warning if no holes found X-Git-Tag: v1.0~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f39571773f0dfef642bff1dcf9ec08fcd0e9ab8;p=tools%2Fbmap-tools.git bmap-creator: print a warning if no holes found Probably this means that the image file was not handled correctly and holes were expanded. Change-Id: I602b52ee6471e0a15938e2100b29329a1b066b3f Signed-off-by: Artem Bityutskiy --- diff --git a/bmap-creator b/bmap-creator index 4ea6028..2a6f6c5 100755 --- a/bmap-creator +++ b/bmap-creator @@ -129,7 +129,11 @@ def main(): log.error(str(err)) raise SystemExit(1) - # TODO: complain if no holes + if creator.bmap_mapped_cnt == creator.bmap_blocks_cnt: + log.warning("all %s are mapped, no holes in '%s'" \ + % (creator.bmap_image_size_human, args.image)) + log.warning("was the image handled incorrectly and holes " \ + "were expanded?") if __name__ == "__main__": sys.exit(main())