Re: [PATCH] idlestat: Replace asserts with proper error handlings

2014-11-26 Thread Pi-Cheng Chen
On 26 November 2014 at 22:28, Tuukka Tikkanen wrote: > Hi, > > committing amended (see below). > Hi Tuukka, thanks for reviewing and fixing. Pi-Cheng > On Wed, Nov 26, 2014 at 10:15 AM, pi-cheng.chen > wrote: >> Replace asserts with displaying error messages and/or terminating program in >> a

Re: [PATCH] idlestat: Replace asserts with proper error handlings

2014-11-26 Thread Tuukka Tikkanen
Hi, committing amended (see below). On Wed, Nov 26, 2014 at 10:15 AM, pi-cheng.chen wrote: > Replace asserts with displaying error messages and/or terminating program in a > controlled manner. Also refine some error handling paths. This description doesn't really tell what is wrong in the origi

[PATCH] idlestat: Replace asserts with proper error handlings

2014-11-26 Thread pi-cheng.chen
Replace asserts with displaying error messages and/or terminating program in a controlled manner. Also refine some error handling paths. Signed-off-by: Pi-Cheng Chen --- energy_model.c | 3 --- idlestat.c | 62 +++--- topology.c | 12 +