]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r231973: Avoid error log for transfer stop w/o error code.
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Aug 2012 14:52:43 +0000 (14:52 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Aug 2012 14:52:43 +0000 (14:52 +0000)
commit53595ce185ec7d6ef935baae62d071f7b2477957
tree0d18e495bee0bbdd41a84c5452a697ddff5066ff
parentab7f0f9e75312420d836815368eb39e8c3f7c696
MFC r231973: Avoid error log for transfer stop w/o error code.

A number of tftp clients, including the one in Intel's pxe boot loader,
may intentionally stop a transfer using error code 0 (i.e., EUNDEF).
These are not real errors.  Avoid spamming log files with these by
logging them at level LOG_DEBUG instead.

Discussed on -hackers with an initial patch proposal; this change is an
improved approach suggested by kan@.

git-svn-id: svn://svn.freebsd.org/base/stable/9@239432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libexec/tftpd/tftp-io.c