{
int ret = capng_change_id(pw->pw_uid, pw->pw_gid, CAPNG_NO_FLAG);
if (ret < 0)
- error("capng_change_id(): return %d\n", ret);
+ error("capng_change_id(): return %d", ret);
else
fprintf(stderr, "dropped privs to %s\n", username);
}
* specific case would be an error message that looks a bit odd.
*/
newdev[strlen(newdev)-1]++;
- error("%s is not a monitor mode VAP\n"
+ error("%s is not a monitor mode VAP"
"To create a new monitor mode VAP use:\n"
" ifconfig %s create wlandev %s wlanmode monitor\n"
"and use %s as the tcpdump interface",
#if defined(HAVE_FORK) || defined(HAVE_VFORK)
zflag = optarg;
#else
- error("-z cannot be used. Fork subprocess not implemented.\n");
+ error("-z cannot be used. Fork subprocess not implemented.");
#endif
break;
if (ndo->ndo_xflag && ndo->ndo_Xflag)
error("-x[x] and -X[X] are mutually exclusive.");
if (Cflag != 0 && WFileName == NULL)
- error("-C cannot be used without -w.\n");
+ error("-C cannot be used without -w.");
if (Gflag != 0 && WFileName == NULL)
- error("-G cannot be used without -w.\n");
+ error("-G cannot be used without -w.");
#if defined(HAVE_FORK) || defined(HAVE_VFORK)
if (zflag != NULL && (WFileName == NULL || (Cflag == 0 && Gflag == 0)))
- error("-z cannot be used without -w and (-C or -G).\n");
+ error("-z cannot be used without -w and (-C or -G).");
#endif
#ifdef HAVE_PCAP_FINDALLDEVS
VFile = fopen(VFileName, "r");
if (VFile == NULL)
- error("Unable to open file: %s\n", pcap_strerror(errno));
+ error("Unable to open file: %s", pcap_strerror(errno));
ret = get_next_file(VFile, VFileLine);
if (!ret)
- error("Nothing in %s\n", VFileName);
+ error("Nothing in %s", VFileName);
RFileName = VFileLine;
}