mirror of
https://github.com/linux-can/can-utils.git
synced 2026-09-20 14:29:55 +02:00
Merge pull request #458 from marckleinebudde/cansequence-error-messages
cansequence: error messages
This commit is contained in:
+2
-2
@@ -125,7 +125,7 @@ static void do_receive()
|
|||||||
|
|
||||||
nbytes = recvmsg(s, &msg, 0);
|
nbytes = recvmsg(s, &msg, 0);
|
||||||
if (nbytes < 0) {
|
if (nbytes < 0) {
|
||||||
perror("read()");
|
perror("recvmsg()");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -347,7 +347,7 @@ int main(int argc, char **argv)
|
|||||||
if (strcmp(ANYDEV, interface)) {
|
if (strcmp(ANYDEV, interface)) {
|
||||||
addr.can_ifindex = if_nametoindex(interface);
|
addr.can_ifindex = if_nametoindex(interface);
|
||||||
if (!addr.can_ifindex) {
|
if (!addr.can_ifindex) {
|
||||||
perror("if_nametoindex");
|
perror("if_nametoindex()");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user