Skip to contentSkip to conversation

audit_p2m: fix syntax errors in disabled debug code

PATCH New Olaf Hering 1 participant 1 message Dec 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audit_p2m: fix syntax errors in disabled debug code

If P2M_PRINTK is re-defined as ordinary printk, some (disabled) debug statements will not compile.

xen/arch/x86/mm/p2m.c +2 -2
@@ -2002,7 +2002,7 @@ static void audit_p2m(struct p2m_domain
         }
 
         // P2M_PRINTK("OK: mfn=%#lx, gfn=%#lx, p2mfn=%#lx, lp2mfn=%#lx\n",
-        //                mfn, gfn, p2mfn, lp2mfn);
+        //                mfn, gfn, mfn_x(p2mfn), lp2mfn);
     }
 
     spin_unlock(&d->page_alloc_lock);
@@ -2164,7 +2164,7 @@ static void audit_p2m(struct p2m_domain
     //P2M_PRINTK("p2m audit complete\n");
     //if ( orphans_i | orphans_d | mpbad | pmbad )
     //    P2M_PRINTK("p2m audit found %lu orphans (%lu inval %lu debug)\n",
-    //                   orphans_i + orphans_d, orphans_i, orphans_d,
+    //                   orphans_i + orphans_d, orphans_i, orphans_d);
     if ( mpbad | pmbad )
     {
         P2M_PRINTK("p2m audit found %lu odd p2m, %lu bad m2p entries\n",