vpd: Add logs when the values change

The changes in VPD are rare, but important. When a change occurs we want
to have the information about changes in the logs.

This CL adds the logs, which should help investigating when issues occur.

BUG=chromium:1011375
TEST=Deployed on device and checked that /var/log/ui/ui.LATEST contains
the changes after some values are updated.
BRANCH=none

Change-Id: Iab13510a05c3aaa6abb7817e9ce23be6fa712b16
Reviewed-on: https://chromium-review.googlesource.com/1852268
Tested-by: Igor <igorcov@chromium.org>
Commit-Ready: Igor <igorcov@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Igor <igorcov@chromium.org>
diff --git a/util/update_rw_vpd b/util/update_rw_vpd
index 4292b8d..82421ba 100755
--- a/util/update_rw_vpd
+++ b/util/update_rw_vpd
@@ -49,11 +49,13 @@
     # Delete ${key} if it exists.
     if [[ "${vpd_contents[${quoted_key}]+set}" == "set" || \
           -n "${VPD_IGNORE_CACHE}" ]]; then
+      echo "Key ${key} to be removed from VPD"
       updates+=( -d "${key}" )
     fi
   else
     # Set ${key} to ${value} if the value doesn't match already.
     if [[ "\"${value}\"" != "${vpd_contents[${quoted_key}]}" ]]; then
+      echo "Update key ${key}=${value} in VPD"
       updates+=( -s "${key}=${value}" )
     fi
   fi