PERFORCE change 50149 for review
Peter Wemm
peter at FreeBSD.org
Thu Apr 1 16:16:39 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=50149
Change 50149 by peter at 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;
}
More information about the p4-projects
mailing list