diff --git a/main.cpp b/main.cpp index 34caaf5..6743d76 100755 --- a/main.cpp +++ b/main.cpp @@ -785,7 +785,7 @@ int client_event_loop() if(strcmp(dev,"")==0) { - mylog(log_info,"--dev have not been set, trying to detect automatically, avaliable deives:\n",dev); + mylog(log_info,"--dev have not been set, trying to detect automatically, avaliable deives:\n"); mylog(log_info,"avaliable deives(and ip address):\n"); diff --git a/makefile b/makefile index 782d0b2..8b93b88 100755 --- a/makefile +++ b/makefile @@ -62,7 +62,7 @@ fast: git_version ${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -ggdb debug: git_version rm -f ${NAME} - ${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -Wformat-nonliteral -D MY_DEBUG + ${cc_local} -o ${NAME} -I. ${SOURCES} ${PCAP} ${LIBNET} ${FLAGS} -lrt -ggdb -static -O2 -Wformat-nonliteral -D MY_DEBUG debug2: git_version rm -f ${NAME} ${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -Wformat-nonliteral -ggdb