Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
converter: Improve bit_position computation
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
utils
/
socketcan.cpp
diff --git
a/low-can-binding/utils/socketcan.cpp
b/low-can-binding/utils/socketcan.cpp
index
d72f108
..
e8e0198
100644
(file)
--- a/
low-can-binding/utils/socketcan.cpp
+++ b/
low-can-binding/utils/socketcan.cpp
@@
-73,6
+73,9
@@
namespace utils
{
close();
socket_ = ::socket(domain, type, protocol);
{
close();
socket_ = ::socket(domain, type, protocol);
+ if (socket_ < 0)
+ AFB_ERROR("Open failed. %s", strerror(errno));
+
return socket_;
}
return socket_;
}
@@
-117,7
+120,7
@@
namespace utils
{
if(write_message(vobj[i])<0)
{
{
if(write_message(vobj[i])<0)
{
- AFB_ERROR("Error send message %d",i);
+ AFB_ERROR("Error send message %d",
i);
return -1;
}
}
return -1;
}
}