mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Added two missing newlines in calls to log(9).
Reported in Usenet by: locke@mcs.net (Peter Johnson) While i was at it, prepended a 0x to the %D output, to make it clear that the printed value is in hex (i assume %D has been chosen over %#x to obey network byte order).
This commit is contained in:
parent
1cd27266f4
commit
e44d62832c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58758
@ -445,7 +445,7 @@ arpintr()
|
||||
|
||||
if (m->m_len < sizeof(struct arphdr) &&
|
||||
((m = m_pullup(m, sizeof(struct arphdr))) == NULL)) {
|
||||
log(LOG_ERR, "arp: runt packet -- m_pullup failed.");
|
||||
log(LOG_ERR, "arp: runt packet -- m_pullup failed\n");
|
||||
continue;
|
||||
}
|
||||
ar = mtod(m, struct arphdr *);
|
||||
@ -453,7 +453,7 @@ arpintr()
|
||||
if (ntohs(ar->ar_hrd) != ARPHRD_ETHER
|
||||
&& ntohs(ar->ar_hrd) != ARPHRD_IEEE802) {
|
||||
log(LOG_ERR,
|
||||
"arp: unknown hardware address format (%2D)",
|
||||
"arp: unknown hardware address format (0x%2D)\n",
|
||||
(unsigned char *)&ar->ar_hrd, "");
|
||||
m_freem(m);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user