[BACK]Return to subr_pool.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/subr_pool.c between version 1.106 and 1.107

version 1.106, 2005/10/16 02:55:18 version 1.107, 2005/11/02 14:32:54
Line 1583  pool_print(struct pool *pp, const char *
Line 1583  pool_print(struct pool *pp, const char *
 void  void
 pool_printit(struct pool *pp, const char *modif, void (*pr)(const char *, ...))  pool_printit(struct pool *pp, const char *modif, void (*pr)(const char *, ...))
 {  {
         int didlock = 0;  
   
         if (pp == NULL) {          if (pp == NULL) {
                 (*pr)("Must specify a pool to print.\n");                  (*pr)("Must specify a pool to print.\n");
Line 1602  pool_printit(struct pool *pp, const char
Line 1601  pool_printit(struct pool *pp, const char
         if (simple_lock_try(&pp->pr_slock) == 0)          if (simple_lock_try(&pp->pr_slock) == 0)
                 (*pr)("WARNING: pool %s is locked\n", pp->pr_wchan);                  (*pr)("WARNING: pool %s is locked\n", pp->pr_wchan);
         else          else
                 didlock = 1;                  simple_unlock(&pp->pr_slock);
   
         pool_print1(pp, modif, pr);          pool_print1(pp, modif, pr);
   
         if (didlock)  
                 simple_unlock(&pp->pr_slock);  
 }  }
   
 static void  static void

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107

CVSweb <webmaster@jp.NetBSD.org>