From 3253e825f3943f1f607a6fca1c144467e5ca0f97 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 8 Aug 2013 15:48:01 +0300 Subject: [PATCH] raw.py: print a message when compressing the image Image compression may take very long time. The last message on the screen before compression starts is "Generating map file(s)", and then a very long delay, so that it looks like it takes so long to generate map files, but it is not, it is actually the compression which is slow. Let's inform users that we start compressing the image to make it obvious what causes the delay. Change-Id: Ie547451519aae7be5173c05bcfab1aca6c165148 Signed-off-by: Artem Bityutskiy --- mic/imager/raw.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mic/imager/raw.py b/mic/imager/raw.py index 838191a..d10d59a 100644 --- a/mic/imager/raw.py +++ b/mic/imager/raw.py @@ -380,6 +380,7 @@ class RawImageCreator(BaseImageCreator): for imgfile in os.listdir(self.__imgdir): if imgfile.endswith('.raw') or imgfile.endswith('bin'): imgpath = os.path.join(self.__imgdir, imgfile) + msger.info("Compressing image %s" % imgfile) misc.compressing(imgpath, self.compress_image) if self.pack_to: -- 2.7.4