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.


Context-based output infrastructure (V3_Print, etc) and modifications to use it
[palacios.git] / palacios / src / devices / timer.c
index 97d5d7d..0186269 100644 (file)
@@ -30,7 +30,7 @@ struct timer_state {
 
 /*
   static int irq_handler(uint_t irq, struct vm_device * dev) {
-  PrintDebug("Timer interrupt\n");
+  PrintDebug(info->vm_info, info, "Timer interrupt\n");
   return 0;
 
   }
@@ -58,14 +58,14 @@ static int timer_init(struct guest_info * vm, void * cfg_data) {
     timer = (struct timer_state *)V3_Malloc( sizeof(struct timer_state));
 
     if (!timer) {
-       PrintError("Cannot allocate in init\n");
+       PrintError(info->vm_info, info, "Cannot allocate in init\n");
        return -1;
     }
 
     struct vm_device * dev = v3_allocate_device("TIMER", &dev_ops, timer);
     
     if (v3_attach_device(vm, dev) == -1) {
-       PrintError("Could not attach device %s\n", "TIMER");
+       PrintError(info->vm_info, info, "Could not attach device %s\n", "TIMER");
         return -1;
     }