summaryrefslogtreecommitdiff
path: root/futility/updater.c
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2019-05-23 02:48:38 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-05-23 02:14:56 -0700
commit70f795f497da5b80f9b9891998759243021b17bd (patch)
treecd869532ec44816aa6c9c9baa3f8083223b768f4 /futility/updater.c
parentb3c40c0f3781aa10829636e5bc314a3e489bfa98 (diff)
downloadvboot-stabilize-12222.B.tar.gz
futility: updater: Fix logging messagesstabilize-12222.B
In CL:1601678, few logging messages were not properly converted: - STATUS should add \n - INFO and WARN should not need __FUNCTION__ BUG=None TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility BRANCH=None Change-Id: Ib01d9319815a5fbb579e49391fc4bff9d61ca214 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1626189 Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'futility/updater.c')
-rw-r--r--futility/updater.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/futility/updater.c b/futility/updater.c
index 859dedee..a239a31c 100644
--- a/futility/updater.c
+++ b/futility/updater.c
@@ -849,8 +849,7 @@ static int write_firmware(struct updater_config *cfg,
return -1;
if (cfg->emulation) {
- INFO("%s: (emulation) Writing %s from %s to %s (emu=%s).\n",
- __FUNCTION__,
+ INFO("(emulation) Writing %s from %s to %s (emu=%s).\n",
section_name ? section_name : "whole image",
image->file_name, programmer, cfg->emulation);
@@ -936,8 +935,8 @@ int preserve_firmware_section(const struct firmware_image *image_from,
return -1;
}
if (from.size > to.size) {
- WARN("%s: Section %.*s is truncated after updated.\n",
- __FUNCTION__, FMAP_NAMELEN, section_name);
+ WARN("Section %.*s is truncated after updated.\n",
+ FMAP_NAMELEN, section_name);
}
/* Use memmove in case if we need to deal with sections that overlap. */
memmove(to.data, from.data, Min(from.size, to.size));