From a566215ea26763670cdc957f867e65630e3611f1 Mon Sep 17 00:00:00 2001 From: SCZeiDan <53632180+SCZeiDan@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:36:36 +0800 Subject: [PATCH] Update testj1939.c, correct verbose information. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modify the verbose information for setting the promiscuous mode option; --- testj1939.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testj1939.c b/testj1939.c index a59be4a..51008d6 100644 --- a/testj1939.c +++ b/testj1939.c @@ -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));