x86: upgrade: make code comment appear as log lines
authorYousong Zhou <yszhou4tech@gmail.com>
Tue, 3 Nov 2020 03:41:44 +0000 (11:41 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Wed, 11 Nov 2020 13:29:55 +0000 (21:29 +0800)
commitc02096361c671351dc05733cdd47f3da71de47e7
tree57790f59e9cc16f0811e8db0e6ee0b2b3ad5e2c1
parent2e34cfbca78f36d68995f87975db29f53171c854
x86: upgrade: make code comment appear as log lines

The comment content can be useful for readers of both the log and code

Previously when dd command "records in/out" messages are not filtered
like now with get_image_dd, it's not clear that these messages are for
extracting boot sectors.  E.g.

Before

  == upgrade: Reading partition table from bootdisk...
  37+26 records in
  37+26 records out
  == upgrade: Reading partition table from image...

After

  == upgrade: Reading partition table from bootdisk...
  == upgrade: Extract boot sector from the image
  37+26 records in
  37+26 records out
  == upgrade: Reading partition table from image...

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
target/linux/x86/base-files/lib/upgrade/platform.sh