Spell DIAGNOSTIC correctly.

This commit is contained in:
ru 2009-10-24 18:49:17 +00:00
parent 4a8797cf0c
commit e866365bb9
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