diff options
author | Denis Vlasenko | 2006-09-06 18:36:50 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-06 18:36:50 +0000 |
commit | 3538b9a8822421b7c8596a33a917dcf2f99c92b7 (patch) | |
tree | 768c23fe79bb81583de7376a4d744632d888d303 /networking/ipcalc.c | |
parent | 5d725462d44268f9a86030daaa6f6396d32f796c (diff) | |
download | busybox-3538b9a8822421b7c8596a33a917dcf2f99c92b7.zip busybox-3538b9a8822421b7c8596a33a917dcf2f99c92b7.tar.gz |
Implement optional syslog logging using ordinary
bb_xx_msg calls, and convert networking/* to it.
The rest of bbox will be converted gradually.
Diffstat (limited to 'networking/ipcalc.c')
-rw-r--r-- | networking/ipcalc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ipcalc.c b/networking/ipcalc.c index 9838fcf..aafb786 100644 --- a/networking/ipcalc.c +++ b/networking/ipcalc.c @@ -119,7 +119,7 @@ int ipcalc_main(int argc, char **argv) unsigned int msk; if (safe_strtoul(prefixstr, &netprefix) || netprefix > 32) { - IPCALC_MSG(bb_error_msg_and_die("bad IP prefix: %s\n", prefixstr), + IPCALC_MSG(bb_error_msg_and_die("bad IP prefix: %s", prefixstr), exit(EXIT_FAILURE)); } netmask = 0; @@ -149,7 +149,7 @@ int ipcalc_main(int argc, char **argv) if (argc == 2) { if (ENABLE_FEATURE_IPCALC_FANCY && have_netmask) { - IPCALC_MSG(bb_error_msg_and_die("Use prefix or netmask, not both.\n"), + IPCALC_MSG(bb_error_msg_and_die("Use prefix or netmask, not both"), exit(EXIT_FAILURE)); } |