commit | 229dc35f699f144e5e3ccd8062bba8f6e650cfdc | [log] [tgz] |
---|---|---|
author | Jon Medhurst <tixy@linaro.org> | Thu Dec 06 17:00:55 2012 +0000 |
committer | Jon Medhurst <tixy@linaro.org> | Mon Dec 10 20:39:17 2012 +0000 |
tree | 0ddeef697f6c97b22bc0b89adc11f700102311af | |
parent | 523e21d366523604576b85960d7aba6062fd5605 [diff] |
init: Fix get_hardware_name() to cope with long /proc/cpuinfo output get_hardware_name() uses a fixed size buffer to slurp the contents of /proc/cpuinfo into and with newer multicore systems this is not big enough, leading to the inability to pick up the hardware name. Fix this by using a dynamically allocated, exponentially growing buffer. Change-Id: I51c6c276b6e110f462839e205a4428adc6656e75 Signed-off-by: Jon Medhurst <tixy@linaro.org>