Filemap: add debugging facility
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 21 Jan 2014 12:25:08 +0000 (14:25 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 21 Jan 2014 17:16:23 +0000 (19:16 +0200)
commit837059a98a5722b032ea7beaaf63917f41e65197
treefdadfff7078501b051a2e2224dfd77e4e112c0a4
parent6e95b749bd12177c7363b4cee863c83f0abddfd3
Filemap: add debugging facility

Add the 'log' parameter to the Filemap* classes to allow passing the logger
object where the debugging prints will go. This is similar to what we have in
the BmapCopy module. Also add the same parameter to 'BmapCreate' and make sure
that 'bmaptool' passes its logger to 'BmapCreate', which then passes it to
'Filemap*' objects, where we use it for debugging.

This makes sure that '--debug' triggers debugging messages from 'Filemap*'
ojects.

Change-Id: Idc9686edc4809856720481f79e37887d29a8b0df
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptool
bmaptools/BmapCreate.py
bmaptools/Filemap.py