aboutsummaryrefslogtreecommitdiff
path: root/tracefile_idlestat.c
diff options
context:
space:
mode:
authorTuukka Tikkanen <tuukka.tikkanen@linaro.org>2015-01-13 19:53:15 +0200
committerTuukka Tikkanen <tuukka.tikkanen@linaro.org>2015-01-13 19:53:15 +0200
commit11706469d76826e4e6f967969c4487f6e7ebc71c (patch)
tree5ed65ac56001080b4f1ed9b2a475aa10426becd5 /tracefile_idlestat.c
parente776936ab69d309084e464e0c8dfccb822ba500a (diff)
Energy model: Do not exit() with a negative status code
Process status codes are positive integers. Parse_energy_model() would use the return value of make_energy_model_template() directly as a parameter to call to exit(). In case of an error, this would translate to exit(-1), which is incorrect. This patch makes all non-zero return value from energy model template creation get traslated to 1. Signed-off-by: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Diffstat (limited to 'tracefile_idlestat.c')
0 files changed, 0 insertions, 0 deletions