From 944295b5af95fdcb1a33e2028ef709e7bf60cb6e Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Thu, 20 Jul 2017 10:14:56 +0200 Subject: Fix: align bindingv2 struct with dab appfw version DAB Fixes follows appfw API break. Following functions now return 0 on success and negative value on failure : o afb_req_subcall o afb_req_subcall_sync o afb_service_call o afb_service_call_sync Verbosity macros used in v2 bindings now needs to be prefixed with AFB_ (ERROR -> AFB_ERROR) New field for afb_verb_v2 and afb_binding_v2 structures Fix: uninitialized variables. Change-Id: Ia728b9ac4576b9b44c8c7c054820b7c64a314942 Signed-off-by: Romain Forlot --- low-can-binding/utils/socketcan.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'low-can-binding/utils/socketcan.hpp') diff --git a/low-can-binding/utils/socketcan.hpp b/low-can-binding/utils/socketcan.hpp index 82b797e..40e165b 100644 --- a/low-can-binding/utils/socketcan.hpp +++ b/low-can-binding/utils/socketcan.hpp @@ -65,7 +65,7 @@ namespace utils socketcan_t& operator<<(socketcan_t& s, const T& obj) { if (::sendto(s.socket(), &obj, sizeof(obj), 0, (const struct sockaddr*)&s.get_tx_address(), sizeof(s.get_tx_address())) < 0) - ERROR("Error sending : %i %s", errno, ::strerror(errno)); + AFB_ERROR("Error sending : %i %s", errno, ::strerror(errno)); return s; } } -- cgit 1.2.3-korg