}
if ( av )
- avc_printk(buf, " 0x%x", av);
+ avc_printk(buf, " %#x", av);
avc_printk(buf, " }");
}
avc_printk(&buf, "domid=%d ", cdom->domain_id);
switch ( a ? a->type : 0 ) {
case AVC_AUDIT_DATA_DEV:
- avc_printk(&buf, "device=0x%lx ", a->device);
+ avc_printk(&buf, "device=%#lx ", a->device);
break;
case AVC_AUDIT_DATA_IRQ:
avc_printk(&buf, "irq=%d ", a->irq);
break;
case AVC_AUDIT_DATA_RANGE:
- avc_printk(&buf, "range=0x%lx-0x%lx ", a->range.start, a->range.end);
+ avc_printk(&buf, "range=%#lx-%#lx ", a->range.start, a->range.end);
break;
case AVC_AUDIT_DATA_MEMORY:
- avc_printk(&buf, "pte=0x%lx mfn=0x%lx ", a->memory.pte, a->memory.mfn);
+ avc_printk(&buf, "pte=%#lx mfn=%#lx ", a->memory.pte, a->memory.mfn);
break;
}
if ( le32_to_cpu(buf[0]) != POLICYDB_MAGIC )
{
- printk(KERN_ERR "Flask: policydb magic number 0x%x does "
- "not match expected magic number 0x%x\n",
+ printk(KERN_ERR "Flask: policydb magic number %#x does "
+ "not match expected magic number %#x\n",
le32_to_cpu(buf[0]), POLICYDB_MAGIC);
goto bad;
}
c->u.ioport.high_ioport == high && c->sid[0] == sid)
break;
- printk("%s: IO Port overlap with entry 0x%x - 0x%x\n",
+ printk("%s: IO Port overlap with entry %#x - %#x\n",
__FUNCTION__, c->u.ioport.low_ioport,
c->u.ioport.high_ioport);
ret = -EEXIST;
c->u.iomem.high_iomem == high && c->sid[0] == sid)
break;
- printk("%s: IO Memory overlap with entry 0x%x - 0x%x\n",
+ printk("%s: IO Memory overlap with entry %#x - %#x\n",
__FUNCTION__, c->u.iomem.low_iomem,
c->u.iomem.high_iomem);
ret = -EEXIST;
if ( c->sid[0] == sid )
break;
- printk("%s: Duplicate PCI Device 0x%x\n", __FUNCTION__,
+ printk("%s: Duplicate PCI Device %#x\n", __FUNCTION__,
add->u.device);
ret = -EEXIST;
break;
}
}
- printk("%s: ocontext not found: ioport 0x%x - 0x%x\n", __FUNCTION__,
+ printk("%s: ocontext not found: ioport %#x - %#x\n", __FUNCTION__,
low, high);
ret = -ENOENT;
break;
}
}
- printk("%s: ocontext not found: iomem 0x%x - 0x%x\n", __FUNCTION__,
+ printk("%s: ocontext not found: iomem %#x - %#x\n", __FUNCTION__,
low, high);
ret = -ENOENT;
break;
}
}
- printk("%s: ocontext not found: pcidevice 0x%x\n", __FUNCTION__, low);
+ printk("%s: ocontext not found: pcidevice %#x\n", __FUNCTION__, low);
ret = -ENOENT;
break;
policy_buffer = (char *)_policy_start;
policy_size = _policy_len;
- printk("Policy len 0x%lx, start at %p.\n",
+ printk("Policy len %#lx, start at %p.\n",
_policy_len,_policy_start);
__clear_bit(i, module_map);