fprintf(stderr, "Onlining page mfn %lx is broken, "
"Memory online failed\n", mfn);
ret = -1;
- }
+ }
else if (status & PG_ONLINE_ONLINED)
printf("Memory mfn %lx onlined successfully\n", mfn);
else
fprintf(stderr, "Querying page mfn %lx failed, error %x\n", mfn, errno);
else
{
- printf("Memory Status %x: [", status);
+ printf("Memory Status %x: [", status);
if ( status & PG_OFFLINE_STATUS_OFFLINE_PENDING)
printf(" PAGE_OFFLINE_PENDING ");
if ( status & PG_OFFLINE_STATUS_BROKEN )
printf(" PAGE_BROKEND ");
if ( status & PG_OFFLINE_STATUS_OFFLINED )
printf(" PAGE_OFFLINED ");
- else
+ else
printf(" PAGE_ONLINED ");
printf("]\n");
}