mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
Update testj1939.c, correct verbose information. (#503)
Modify the verbose information for setting the promiscuous mode option;
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (todo_promisc) {
|
||||
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));
|
||||
ret = setsockopt(sock, SOL_CAN_J1939, SO_J1939_PROMISC,
|
||||
&todo_promisc, sizeof(todo_promisc));
|
||||
|
||||
Reference in New Issue
Block a user