]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Improve another invalid adapter index message.
authorGuy Harris <[email protected]>
Fri, 9 Aug 2024 07:01:52 +0000 (00:01 -0700)
committerGuy Harris <[email protected]>
Fri, 9 Aug 2024 07:02:27 +0000 (00:02 -0700)
(cherry picked from commit c615b088cde4990be3963c960c4d5902d0874b21)

tcpdump.c

index 6e6dc29cab3d9049be4ce5794d7960a9116f340c..92b76c4017c2f75bf62594083b115655f6a63245 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -1162,7 +1162,7 @@ parse_interface_number(const char *device)
                        /*
                         * No, it's not an ordinal.
                         */
-                       error("Invalid adapter index");
+                       error("Invalid adapter index %s", device);
                }
                return (devnum);
        } else {