<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/Intel-BMC/linux.git/tools/iio/iio_event_monitor.c, branch dev</title>
<subtitle>Intel OpenBMC Linux kernel source tree (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev</id>
<link rel='self' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/atom?h=dev'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/'/>
<updated>2015-06-01T07:34:48+00:00</updated>
<entry>
<title>tools:iio:iio_event_monitor: refactor events output</title>
<updated>2015-06-01T07:34:48+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-05-31T12:40:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=916e89e4b7272e1eda9eba057cf25197129bcf79'/>
<id>urn:sha1:916e89e4b7272e1eda9eba057cf25197129bcf79</id>
<content type='text'>
Refactor the code in print_event() to reduce code duplication and better
reflect that the type is output unconditionally, as well as cascade the
dependency of the diff-channel. Saves a few lines of code, as well.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools:iio: return values directly</title>
<updated>2015-06-01T07:33:47+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-05-31T12:40:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=0e799878175aa7d08f5882b6a391de4724c52e9e'/>
<id>urn:sha1:0e799878175aa7d08f5882b6a391de4724c52e9e</id>
<content type='text'>
Return directly, if no common cleanup is required.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools:iio:iio_event_monitor: add error handling</title>
<updated>2015-05-31T18:25:12+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-05-31T12:40:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=963f54cef23b7e8c91bbe60b978b5f4a3e990f2c'/>
<id>urn:sha1:963f54cef23b7e8c91bbe60b978b5f4a3e990f2c</id>
<content type='text'>
Add error handling to calls which can indicate a major problem by
returning an error code.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools:iio: catch errors in string allocation</title>
<updated>2015-05-31T18:21:10+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-05-31T12:40:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=e9e45b43b8f06273d9b78f187042dff0bf5be0a5'/>
<id>urn:sha1:e9e45b43b8f06273d9b78f187042dff0bf5be0a5</id>
<content type='text'>
This patch catches errors in string allocation in generic_buffer.c,
iio_event_monitor.c, iio_utils.c and lsiio.c.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools:iio:iio_event_monitor: save right errno</title>
<updated>2015-05-31T16:34:05+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-05-31T12:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=5fdb8c6127c3c594360fb5f2959a724809c0032e'/>
<id>urn:sha1:5fdb8c6127c3c594360fb5f2959a724809c0032e</id>
<content type='text'>
Move up error handling code to preserve the errno coming from ioctl(),
before it may be changed by close().

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools:iio: save errno first</title>
<updated>2015-05-31T16:32:44+00:00</updated>
<author>
<name>Hartmut Knaack</name>
<email>knaack.h@gmx.de</email>
</author>
<published>2015-05-31T12:39:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=2b6a6e67af6f8f644a48f75efc1f44544c0d74f6'/>
<id>urn:sha1:2b6a6e67af6f8f644a48f75efc1f44544c0d74f6</id>
<content type='text'>
The man-page of errno states, that errno should be saved before doing any
library call, as that call may have changed the value of errno. So, when
encountering any error, save errno first.
This patch affects generic_buffer.c, iio_event_monitor.c and iio_utils.c.

Signed-off-by: Hartmut Knaack &lt;knaack.h@gmx.de&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>tools: iio: Define _GNU_SOURCE in Makefile</title>
<updated>2015-03-09T17:17:26+00:00</updated>
<author>
<name>Roberta Dobrescu</name>
<email>roberta.dobrescu@gmail.com</email>
</author>
<published>2015-02-26T08:49:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=976d9ab112bdef7b25827f576b33068704df78ee'/>
<id>urn:sha1:976d9ab112bdef7b25827f576b33068704df78ee</id>
<content type='text'>
Definition of _GNU_SOURCE is needed to get rid of some warnings, such
as:
warning: implicit declaration of function `asprintf'.

generic_buffer.c and iio_event_monitor.c define _GNU_SOURCE,
but it is also needed in lsiio.c and iio_utils.c. For this reason,
this patch adds the definition in Makefile and removes it from where
it already exists.

Signed-off-by: Roberta Dobrescu &lt;roberta.dobrescu@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
<entry>
<title>iio: Move iio userspace applications out of staging</title>
<updated>2015-03-09T17:16:08+00:00</updated>
<author>
<name>Roberta Dobrescu</name>
<email>roberta.dobrescu@gmail.com</email>
</author>
<published>2015-02-26T08:49:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/Intel-BMC/linux.git/commit/?id=817020cfb3a2649064a1e14e083934234e2c208d'/>
<id>urn:sha1:817020cfb3a2649064a1e14e083934234e2c208d</id>
<content type='text'>
This patch moves iio userspace applications out of staging, to tools/iio/
and adds a Makefile in order to compile them easily. It also adds tools/iio/
to MAINTAINERS file.

Signed-off-by: Roberta Dobrescu &lt;roberta.dobrescu@gmail.com&gt;
Signed-off-by: Jonathan Cameron &lt;jic23@kernel.org&gt;
</content>
</entry>
</feed>
