bmaptool: remove junk argument
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 24 Sep 2013 07:07:04 +0000 (10:07 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 30 Sep 2013 07:10:03 +0000 (10:10 +0300)
This patch remove unneeded junk argument from the BmapBdevCopy constructor
invocation and fixes this issue:

Traceback (most recent call last):
  File "./bmaptool", line 684, in <module>
    sys.exit(main())
  File "./bmaptool", line 668, in main
    args.func(args, log)
  File "./bmaptool", line 434, in copy_command
    image_size, logger=log)
TypeError: __init__() got multiple values for keyword argument 'logger'

Change-Id: Ic77418ec81f6c085118807eb4a675034979a8f72
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptool

index 6b85cae2b59837fbfdcaa94949f78cf8ac1ecc0b..e2b7f1b69882bf24a4657214721677a457489e2d 100755 (executable)
--- a/bmaptool
+++ b/bmaptool
@@ -429,7 +429,7 @@ def copy_command(args, log):
         if dest_is_blkdev:
             dest_str = "block device '%s'" % args.dest
             # For block devices, use the specialized class
-            writer = BmapCopy.BmapBdevCopy(image_obj, dest_obj, args.dest,
+            writer = BmapCopy.BmapBdevCopy(image_obj, dest_obj,
                                            NamedFile(bmap_obj, bmap_path),
                                            image_size, logger=log)
         else: