Don't call report() without a format string.

MFC after:	3 days
This commit is contained in:
kris 2002-10-13 11:27:36 +00:00
parent 2e6c3a2849
commit 10962700eb

View File

@ -201,7 +201,7 @@ setarp(s, ia, hafamily, haddr, halen)
snprintf(buf, sizeof(buf), "arp -d %s; arp -s %s %s temp",
a, a, haddrtoa(haddr, halen));
if (debug > 2)
report(LOG_INFO, buf);
report(LOG_INFO, "%s", buf);
status = system(buf);
if (status)
report(LOG_ERR, "arp failed, exit code=0x%x", status);