commit | ae5d7198f7fe949385279369c0b4c06a6e5ea260 | [log] [tgz] |
---|---|---|
author | Bryce Harrington <bryce@osg.samsung.com> | Wed Mar 16 14:15:19 2016 -0700 |
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | Thu Mar 17 14:17:02 2016 +0200 |
tree | e9397e61fdd00a33a5380a860be993389e0208e7 | |
parent | e99e4bf2b9aa13baae46f2a49ff9c9ed8ca631c7 [diff] |
shared: Print .c file/line number in x* routines 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) Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>