diff options
author | Sean McNeil <sean.mcneil@windriver.com> | 2009-02-28 14:41:33 +0700 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2010-07-13 14:24:39 -0700 |
commit | 68fec9a751ee943ba1d48e5af8d68c8ff33c66d8 (patch) | |
tree | 008071f336e4e61ce233bfd0d3433ddc55ee0127 /init | |
parent | bedaac52a677c152e051c17ef456cc9e43f3812b (diff) | |
download | system_core-68fec9a751ee943ba1d48e5af8d68c8ff33c66d8.zip system_core-68fec9a751ee943ba1d48e5af8d68c8ff33c66d8.tar.gz system_core-68fec9a751ee943ba1d48e5af8d68c8ff33c66d8.tar.bz2 |
Use complete hardware name without spaces.
Many targets use generic first portions like 'OMAP'
Change-Id: I00ba4e64cffc48353c29e409c3c19238024fbd8c
Diffstat (limited to 'init')
-rwxr-xr-x | init/init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c index 4d98cc2..0667593 100755 --- a/init/init.c +++ b/init/init.c @@ -657,8 +657,9 @@ static void get_hardware_name(void) if (x) { x += 2; n = 0; - while (*x && !isspace(*x)) { - hardware[n++] = tolower(*x); + while (*x && *x != '\n') { + if (!isspace(*x)) + hardware[n++] = tolower(*x); x++; if (n == 31) break; } |