summaryrefslogtreecommitdiff
path: root/chip/npcx
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2019-09-25 16:57:27 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-01 10:54:28 +0000
commitaee33d5c90f8a1c754dc7651a9c8aad20bb063ec (patch)
tree5a7470bc4381a1cd821199091cd2eae2dc4ec136 /chip/npcx
parent620b7164dddf12df27d5380d647c921853c036dc (diff)
downloadchrome-ec-aee33d5c90f8a1c754dc7651a9c8aad20bb063ec.tar.gz
chip/npcx: fix cprints arguments
this fixes the format string used in cprints. the intent was clearly string concatenation, but instead 2 strings were passed to cprints. BUG=none BRANCH=none TEST=buildall passes, boots on atlas Change-Id: I8942c4f5fd99b490a3da8a6a289d23454509e69d Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1826177 Reviewed-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/npcx')
-rw-r--r--chip/npcx/i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/npcx/i2c.c b/chip/npcx/i2c.c
index f98697da7b..44761a7fe9 100644
--- a/chip/npcx/i2c.c
+++ b/chip/npcx/i2c.c
@@ -790,7 +790,7 @@ static void i2c_freq_changed(void)
/* Set value from formula */
NPCX_SMBSCLLT(ctrl) = scl_freq;
NPCX_SMBSCLHT(ctrl) = scl_freq;
- cprints(CC_I2C, "Warning: Use 400K or 1MHz",
+ cprints(CC_I2C, "Warning: Use 400K or 1MHz "
"for better timing of I2c %d", ctrl);
continue;
}
@@ -806,7 +806,7 @@ static void i2c_freq_changed(void)
}
}
if (j == i2c_timing_used)
- cprints(CC_I2C, "Error: Please make sure src ",
+ cprints(CC_I2C, "Error: Please make sure src "
"clock of i2c %d is supported", ctrl);
}
}