mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-22 23:26:58 +00:00
Use %lx instead of %x when printing unsigned long values
This commit is contained in:
parent
35722ab22d
commit
0db48cbbc3
@ -4162,7 +4162,7 @@ int define_iomem_context(unsigned long low, unsigned long high)
|
||||
newc->u.iomem.high_iomem = high;
|
||||
|
||||
if (low > high) {
|
||||
yyerror2("low memory 0x%x exceeds high memory 0x%x", low, high);
|
||||
yyerror2("low memory 0x%lx exceeds high memory 0x%lx", low, high);
|
||||
free(newc);
|
||||
return -1;
|
||||
}
|
||||
@ -4179,7 +4179,7 @@ int define_iomem_context(unsigned long low, unsigned long high)
|
||||
low2 = c->u.iomem.low_iomem;
|
||||
high2 = c->u.iomem.high_iomem;
|
||||
if (low <= high2 && low2 <= high) {
|
||||
yyerror2("iomemcon entry for 0x%x-0x%x overlaps with "
|
||||
yyerror2("iomemcon entry for 0x%lx-0x%lx overlaps with "
|
||||
"earlier entry 0x%x-0x%x", low, high,
|
||||
low2, high2);
|
||||
goto bad;
|
||||
@ -4226,7 +4226,7 @@ int define_ioport_context(unsigned long low, unsigned long high)
|
||||
newc->u.ioport.high_ioport = high;
|
||||
|
||||
if (low > high) {
|
||||
yyerror2("low ioport 0x%x exceeds high ioport 0x%x", low, high);
|
||||
yyerror2("low ioport 0x%lx exceeds high ioport 0x%lx", low, high);
|
||||
free(newc);
|
||||
return -1;
|
||||
}
|
||||
@ -4243,7 +4243,7 @@ int define_ioport_context(unsigned long low, unsigned long high)
|
||||
low2 = c->u.ioport.low_ioport;
|
||||
high2 = c->u.ioport.high_ioport;
|
||||
if (low <= high2 && low2 <= high) {
|
||||
yyerror2("ioportcon entry for 0x%x-0x%x overlaps with"
|
||||
yyerror2("ioportcon entry for 0x%lx-0x%lx overlaps with"
|
||||
"earlier entry 0x%x-0x%x", low, high,
|
||||
low2, high2);
|
||||
goto bad;
|
||||
@ -4299,7 +4299,7 @@ int define_pcidevice_context(unsigned long device)
|
||||
|
||||
device2 = c->u.device;
|
||||
if (device == device2) {
|
||||
yyerror2("duplicate pcidevicecon entry for 0x%x ",
|
||||
yyerror2("duplicate pcidevicecon entry for 0x%lx ",
|
||||
device);
|
||||
goto bad;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user