Update testj1939.c, correct verbose information. (#503)

Modify the verbose information for setting the promiscuous mode option;
pull/506/head
SCZeiDan 2024-03-04 21:54:41 +08:00 committed by GitHub
parent c6f4cbcaa7
commit 64dc0b2169
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ int main(int argc, char *argv[])
if (todo_promisc) { if (todo_promisc) {
if (verbose) if (verbose)
fprintf(stderr, "- setsockopt(, SOL_SOCKET, SO_J1939_PROMISC, %d, %zd);\n", fprintf(stderr, "- setsockopt(, SOL_CAN_J1939, SO_J1939_PROMISC, %d, %zd);\n",
todo_promisc, sizeof(todo_promisc)); todo_promisc, sizeof(todo_promisc));
ret = setsockopt(sock, SOL_CAN_J1939, SO_J1939_PROMISC, ret = setsockopt(sock, SOL_CAN_J1939, SO_J1939_PROMISC,
&todo_promisc, sizeof(todo_promisc)); &todo_promisc, sizeof(todo_promisc));