summaryrefslogtreecommitdiff
path: root/driver/temp_sensor
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2019-06-17 13:08:06 +0800
committerCommit Bot <commit-bot@chromium.org>2019-06-20 05:52:11 +0000
commitb16b36b94989a0d8e0f2268099f91094668c70f9 (patch)
treece9f912e6dbb0ed05cfb958f21e1ff67a7898292 /driver/temp_sensor
parentbbe3abd8dbee0a91b5bfad214821768610b10371 (diff)
downloadchrome-ec-b16b36b94989a0d8e0f2268099f91094668c70f9.tar.gz
ec: Remove extraneous new line as the end of CPRINTS strings
CPRINTS already prints a new line, no need to add another one. Spotted during boot on kukui, and then realized there are many more instances: "" [3.689239 Module 7 is not supported for clock disable ] "" BRANCH=none BUG=none TEST=make buildall -j TEST=`git grep CPRINTS | grep "\\\\n\""` shows nothing of interest. Change-Id: I4d2bbbc65a91fa56c6e6115aa5c353bfd2b384a1 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1660519 Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'driver/temp_sensor')
-rw-r--r--driver/temp_sensor/bd99992gw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/temp_sensor/bd99992gw.c b/driver/temp_sensor/bd99992gw.c
index f2a48eb2d5..291ce32479 100644
--- a/driver/temp_sensor/bd99992gw.c
+++ b/driver/temp_sensor/bd99992gw.c
@@ -41,7 +41,7 @@ static int raw_read8(const int offset, int *data_ptr)
int ret;
ret = i2c_read8(I2C_PORT_THERMAL, BD99992GW_I2C_ADDR, offset, data_ptr);
if (ret != EC_SUCCESS)
- CPRINTS("bd99992gw read fail %d\n", ret);
+ CPRINTS("bd99992gw read fail %d", ret);
return ret;
}
@@ -50,7 +50,7 @@ static int raw_write8(const int offset, int data)
int ret;
ret = i2c_write8(I2C_PORT_THERMAL, BD99992GW_I2C_ADDR, offset, data);
if (ret != EC_SUCCESS)
- CPRINTS("bd99992gw write fail %d\n", ret);
+ CPRINTS("bd99992gw write fail %d", ret);
return ret;
}
@@ -136,7 +136,7 @@ int bd99992gw_get_val(int idx, int *temp_ptr)
/* Make sure we found it */
if (i == ARRAY_SIZE(active_channels) ||
active_channels[i] != idx) {
- CPRINTS("Bad ADC channel %d\n", idx);
+ CPRINTS("Bad ADC channel %d", idx);
return EC_ERROR_INVAL;
}