Spell DIAGNOSTIC correctly.

This commit is contained in:
Ruslan Ermilov 2009-10-24 18:49:17 +00:00
parent 570d2b25a6
commit 90147b7506
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198448
2 changed files with 3 additions and 3 deletions

View File

@ -259,7 +259,7 @@ smbfs_mount(struct mount *mp)
VOP_UNLOCK(vp, 0);
SMBVDEBUG("root.v_usecount = %d\n", vrefcnt(vp));
#ifdef DIAGNOSTICS
#ifdef DIAGNOSTIC
SMBERROR("mp=%p\n", mp);
#endif
return error;

View File

@ -76,10 +76,10 @@ Archie's suggestions... :-)
be careful with things like #ifdef INET.
- All nodes assume that all data mbufs have the M_PKTHDR flag set!
The ng_send_data() and related functions should have an
#ifdef DIAGNOSTICS check to check this assumption for every mbuf.
#ifdef DIAGNOSTIC check to check this assumption for every mbuf.
-DONE with INVARIANTS. Framework should test this more.
- More generally, netgraph code should make liberal use of the
#ifdef DIAGNOSTICS definition.
#ifdef DIAGNOSTIC definition.
-INVARIANTS.
- Since data and messages are sent functionally, programmers need
to watch out for infinite feedback loops. Should ng_base.c detect