Re: [lttng-dev] [RFC PATCH babeltrace-1.5] Propagate error from packet_seek in case of truncated packet

2018-02-20 Thread Jérémie Galarneau
Merged with a couple of minor style fixes in master, stable-1.5, and stable-1.4. Thanks! Jérémie On Wed, Feb 07, 2018 at 05:52:05PM -0500, Jonathan Rajotte wrote: > Report the error all the way up allowing users/scripts to perform error > detection and act on it. > > Print to stderr the

[lttng-dev] [RFC PATCH babeltrace-1.5] Propagate error from packet_seek in case of truncated packet

2018-02-07 Thread Jonathan Rajotte
Report the error all the way up allowing users/scripts to perform error detection and act on it. Print to stderr the truncated packet information for easier identification. Introduce bt_packet_seek_error enum for specific error handling. Use the ERANGE errno for error propagation inside