From a25320ce45077c39501b02d6fd8e3cc0409a93e0 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 2 Sep 2019 14:21:44 +0200 Subject: util/uut/l_com_port: coding style fix The upload hooks complained about using the function name in the string, asking to use __file__ instead. BUG=none BRANCH=none TEST=repo upload is happy now Change-Id: I089e3acd3015cfea74439b2cccd5bb07eb5a4045 Signed-off-by: Patrick Georgi Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1781467 Reviewed-by: Daisuke Nojiri Tested-by: Patrick Georgi Commit-Queue: Patrick Georgi --- util/uut/l_com_port.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/uut/l_com_port.c b/util/uut/l_com_port.c index 70c60869b3..8f9a51517a 100644 --- a/util/uut/l_com_port.c +++ b/util/uut/l_com_port.c @@ -389,9 +389,9 @@ uint32_t com_port_read_bin(int device_id, uint8_t *buffer, uint32_t buf_size) if (read_bytes == -1) { display_color_msg(FAIL, - "com_port_read_bin() Error: %d Device number %lu was not " + "%s() Error: %d Device number %lu was not " "opened, %s.\n", - errno, (uint32_t)device_id, strerror(errno)); + __func__, errno, (uint32_t)device_id, strerror(errno)); } return read_bytes; @@ -423,8 +423,8 @@ uint32_t com_port_wait_read(int device_id) ret_val = poll(&fds, 1, COMMAND_TIMEOUT); if (ret_val < 0) { display_color_msg(FAIL, - "com_port_wait_read() Error: %d Device number %lu %s\n", - errno, (uint32_t)device_id, strerror(errno)); + "%s() Error: %d Device number %lu %s\n", + __func__, errno, (uint32_t)device_id, strerror(errno)); return 0; } -- cgit v1.2.1