Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Apr 2004 16:16:37 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 50149 for review
Message-ID:  <200404020016.i320Gbx9089054@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=50149

Change 50149 by peter@peter_hammer on 2004/04/01 16:15:49

	cosmetic

Affected files ...

.. //depot/projects/hammer/sys/modules/test/testmod.c#2 edit

Differences ...

==== //depot/projects/hammer/sys/modules/test/testmod.c#2 (text+ko) ====

@@ -3,18 +3,22 @@
 #include <sys/systm.h>
 #include <sys/sysctl.h>
 
+int foo;
+int bar = 1;
+
 static int
 testmodevent(module_t mod, int type, void *data)
 {
 
         switch (type) {
         case MOD_LOAD:
-		printf("testmod: mod_load called!\n");
+		printf("testmod: mod_load called! foo=%d bar=%d\n", foo, bar);
                 break;
         case MOD_UNLOAD:
-		printf("testmod: mod_unload called!\n");
+		printf("testmod: mod_unload called! foo=%d bar=%d\n", foo, bar);
                 break;
         }
+	foo++;
         return 0;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404020016.i320Gbx9089054>