Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Updates to linux module to use linux print macros
[palacios.git] / linux_module / palacios-vnet.c
index b18ca90..f13a0a9 100644 (file)
@@ -1,7 +1,8 @@
 /* 
-   Palacios VNET Host Hooks Implementations
-   (c) Lei Xia, 2011
+ * Palacios VNET Host Hooks Implementations 
+ * Lei Xia 2010
  */
+
 #include <linux/kernel.h>
 #include <linux/kthread.h>
 #include <linux/spinlock.h>
 #include <linux/sched.h>
 #include <linux/uaccess.h>
 #include <linux/init.h>
-#include <linux/smp_lock.h>
 #include <asm/delay.h>
 #include <linux/timer.h>
 
 #include <vnet/vnet.h>
 #include "mm.h"
 #include "palacios-vnet.h"
+#include "linux-exts.h"
 
 static void host_print(const char *    fmt, ...) {
 
@@ -283,7 +284,7 @@ static int vnet_init( void ) {
     vnet_bridge_init();
     vnet_ctrl_init();
 
-    printk("V3 VNET Inited\n");
+    INFO("V3 VNET Inited\n");
         
     return 0;
 }
@@ -295,7 +296,7 @@ static int vnet_deinit( void ) {
     vnet_bridge_deinit();
     vnet_ctrl_deinit();
 
-    printk("V3 VNET Deinited\n");
+    INFO("V3 VNET Deinited\n");
 
     return 0;
 }