aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2015-03-04 16:51:40 +0000
committerDaniel Thompson <daniel.thompson@linaro.org>2015-03-04 16:51:40 +0000
commit12722563e309b77dcbadff25ea946c246fb829ca (patch)
tree0fdb18396522e38eda6de8e3f796e5dedb53d66f
parentb48125501a0aef43a16c63c2b2cc612fa5a0848b (diff)
Abridge hardware names at '(' charactersHEADlinaro_android_4.4.4master
Change-Id: If02b256451396c4a30c1a013ed60bf08c2e4da8f Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r--init/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/util.c b/init/util.c
index ed3e3277..daf5c413 100644
--- a/init/util.c
+++ b/init/util.c
@@ -432,7 +432,7 @@ void get_hardware_name(char *hardware, unsigned int *revision)
if (x) {
x += 2;
n = 0;
- while (*x && *x != '\n') {
+ while (*x && *x != '\n' && *x != '(') {
if (!isspace(*x))
hardware[n++] = tolower(*x);
x++;