summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/common
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcp/common')
-rw-r--r--usr.sbin/dhcp/common/options.c6
-rw-r--r--usr.sbin/dhcp/common/parse.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/dhcp/common/options.c b/usr.sbin/dhcp/common/options.c
index a07a0dc6656..e347da37203 100644
--- a/usr.sbin/dhcp/common/options.c
+++ b/usr.sbin/dhcp/common/options.c
@@ -481,7 +481,7 @@ char *pretty_print_option (code, data, len, emit_commas, emit_quotes)
/* Figure out the size of the data. */
for (i = 0; dhcp_options [code].format [i]; i++) {
if (!numhunk) {
- warn ("%s: Excess information in format string: %s\n",
+ warn ("%s: Excess information in format string: %s",
dhcp_options [code].name,
&(dhcp_options [code].format [i]));
break;
@@ -533,7 +533,7 @@ char *pretty_print_option (code, data, len, emit_commas, emit_quotes)
case 'e':
break;
default:
- warn ("%s: garbage in format string: %s\n",
+ warn ("%s: garbage in format string: %s",
dhcp_options [code].name,
&(dhcp_options [code].format [i]));
break;
@@ -558,7 +558,7 @@ char *pretty_print_option (code, data, len, emit_commas, emit_quotes)
numhunk = len / hunksize;
/* See if we got an exact number of hunks. */
if (numhunk > 0 && numhunk * hunksize < len)
- warn ("%s: %d extra bytes at end of array\n",
+ warn ("%s: %d extra bytes at end of array",
dhcp_options [code].name,
len - numhunk * hunksize);
diff --git a/usr.sbin/dhcp/common/parse.c b/usr.sbin/dhcp/common/parse.c
index 0ffc4b09337..1f1934f78fc 100644
--- a/usr.sbin/dhcp/common/parse.c
+++ b/usr.sbin/dhcp/common/parse.c
@@ -418,7 +418,7 @@ void convert_num (buf, str, base, size)
break;
}
if (tval >= base) {
- warn ("Bogus number: %s: digit %d not in base %d\n",
+ warn ("Bogus number: %s: digit %d not in base %d",
str, tval, base);
break;
}
@@ -458,7 +458,7 @@ void convert_num (buf, str, base, size)
putLong (buf, -(unsigned long)val);
break;
default:
- warn ("Unexpected integer size: %d\n", size);
+ warn ("Unexpected integer size: %d", size);
break;
}
} else {
@@ -473,7 +473,7 @@ void convert_num (buf, str, base, size)
putULong (buf, val);
break;
default:
- warn ("Unexpected integer size: %d\n", size);
+ warn ("Unexpected integer size: %d", size);
break;
}
}