agent: Improve debug in component_io_cb()
authorJakub Adam <jakub.adam@ktknet.cz>
Sat, 1 Apr 2017 14:21:36 +0000 (16:21 +0200)
committerPhilip Withnall <withnall@endlessm.com>
Mon, 3 Apr 2017 09:46:07 +0000 (10:46 +0100)
commit5e1b5f0352e4bba7b5de63f4788db389c3046fc4
tree2edef929d4e4d870a7e4e0c08dab156ef75d2e18
parent014539351f077694e769e0d1744dfe1636263865
agent: Improve debug in component_io_cb()

agent_recv_message_unlocked() always receives a single message and
returns a RecvStatus code.

Avoid weird debugs like "received -1 valid messages" (when retval is
RECV_WOULD_BLOCK) and print the message only when something was actually
received.

Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Differential Revision: https://phabricator.freedesktop.org/D1706
agent/agent.c