From 92fb2311059b1816a8892df062dfbc54798c75fd Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Fri, 22 Jun 2018 15:05:05 -0700 Subject: [PATCH] build_image.py: remove extra new lines in error message Test: m dist Change-Id: I7908e4eb0a9bbcb187e1fa6d15f606537d69864d --- tools/releasetools/build_image.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py index 7b4831fb2f..8e2085983b 100755 --- a/tools/releasetools/build_image.py +++ b/tools/releasetools/build_image.py @@ -660,12 +660,12 @@ def BuildImage(in_dir, prop_dict, out_file, target_out=None): success, du = GetDiskUsage(origin_in) du_str = ("%d bytes (%d MB)" % (du, du // BYTES_IN_MB) ) if success else "unknown" - print("Out of space? The tree size of %s is %s.\n" % ( + print("Out of space? The tree size of %s is %s." % ( origin_in, du_str)) - print("The max is %d bytes (%d MB).\n" % ( + print("The max is %d bytes (%d MB)." % ( int(prop_dict["partition_size"]), int(prop_dict["partition_size"]) // BYTES_IN_MB)) - print("Reserved space is %d bytes (%d MB).\n" % ( + print("Reserved space is %d bytes (%d MB)." % ( int(prop_dict.get("partition_reserved_size", 0)), int(prop_dict.get("partition_reserved_size", 0)) // BYTES_IN_MB)) return False