image_signing: convert to info/error helpers

This makes the output easier to follow when multiple scripts are being run.

TEST=signing images still works

Change-Id: I48edde260e1d1db88f65624c7ff46ad2ac1cc2f4
Commit-Ready: Mike Frysinger <>
Tested-by: Mike Frysinger <>
Reviewed-by: David Riley <>
diff --git a/scripts/image_signing/ b/scripts/image_signing/
index dcbdf05..5e650af 100755
--- a/scripts/image_signing/
+++ b/scripts/image_signing/
@@ -30,7 +30,7 @@
 zero_free_space() {
   local rootfs="$1"
-  echo "Zeroing freespace in ${rootfs}"
+  info "Zeroing freespace in ${rootfs}"
   # dd is a silly thing and will produce a "No space left on device" message
   # that cannot be turned off and is confusing to unsuspecting victims.
   ( sudo dd if=/dev/zero of="${rootfs}/filler" bs=4096 conv=fdatasync \
@@ -47,7 +47,7 @@
   mount_image_partition ${image} 3 ${rootfs_dir}
   sudo rm -rf "${rootfs_dir}/boot" &&
-    echo "/boot directory was removed."
+    info "/boot directory was removed."
   # To prevent the files we just removed from the FS from remaining as non-
   # zero trash blocks that bloat payload sizes, need to zero them. This was