Re: [PATCH 2/2] shared: Print .c file/line number in x* routines

2016-03-16 Thread Pekka Paalanen
On Tue, 15 Mar 2016 15:23:31 -0700 Bryce Harrington wrote: > Switches from inline to pre-processor definitions in order to utilize > __FILE__ and __LINE__ from the .c file in order to display the location > of memory allocation failures when failing. > > Now xmalloc, et al calls will produce: >

[PATCH 2/2] shared: Print .c file/line number in x* routines

2016-03-15 Thread Bryce Harrington
Switches from inline to pre-processor definitions in order to utilize __FILE__ and __LINE__ from the .c file in order to display the location of memory allocation failures when failing. Now xmalloc, et al calls will produce: [weston-info] clients/weston-info.c:714: out of memory (1024) Signe