Skip to content

Commit

Permalink
Merge branch 'linux-can:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
chbinousamy committed Sep 26, 2023
2 parents e963c57 + 3490282 commit 787a2e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions calc-bit-timing/can-calc-bit-timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static void print_usage(char *cmd)
"\n"
"Or supply low level bit timing parameters to decode them:\n"
"\n"
"\t--tq Time quantum in ns\n"
"\t--prop-seg Propagation segment in TQs\n"
"\t--phase-seg1 Phase buffer segment 1 in TQs\n"
"\t--phase-seg2 Phase buffer segment 2 in TQs\n"
Expand Down
7 changes: 3 additions & 4 deletions cansequence.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ static void print_usage(char *prg)
" -q, --quit <num> quit if <num> wrong sequences are encountered\n"
" -r, --receive work as receiver\n"
" -v, --verbose be verbose (twice to be even more verbose\n"
" -h, --help this help\n"
" --version print version information and exit\n",
" -h, --help this help\n",
prg, CAN_ID_DEFAULT);
}

Expand Down Expand Up @@ -126,7 +125,7 @@ static void do_receive()

nbytes = recvmsg(s, &msg, 0);
if (nbytes < 0) {
perror("read()");
perror("recvmsg()");
exit(EXIT_FAILURE);
}

Expand Down Expand Up @@ -348,7 +347,7 @@ int main(int argc, char **argv)
if (strcmp(ANYDEV, interface)) {
addr.can_ifindex = if_nametoindex(interface);
if (!addr.can_ifindex) {
perror("if_nametoindex");
perror("if_nametoindex()");
exit(EXIT_FAILURE);
}
}
Expand Down

0 comments on commit 787a2e6

Please sign in to comment.