From 70f795f497da5b80f9b9891998759243021b17bd Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Thu, 23 May 2019 02:48:38 +0800 Subject: futility: updater: Fix logging messages 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 Reviewed-on: https://chromium-review.googlesource.com/1626189 Legacy-Commit-Queue: Commit Bot Reviewed-by: Julius Werner --- futility/updater.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'futility/updater.c') 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)); -- cgit v1.2.1