mirror of
https://github.com/byteworksinc/DumpObj.git
synced 2024-11-26 12:49:18 +00:00
Fix buggy printf format strings.
(These were detected with the new printf format checker in ORCA/C.)
This commit is contained in:
parent
25b95443de
commit
e11955093d
@ -612,7 +612,7 @@ switch(kind & 31) {
|
|||||||
printf("direct page/stack segment");
|
printf("direct page/stack segment");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("unknown segment: $04X", kind);
|
printf("unknown segment: %04X", kind);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2249,7 +2249,7 @@ if (constant >= 2) {
|
|||||||
if (constant) {
|
if (constant) {
|
||||||
ReadOpVal(&number,4,input,numsex);
|
ReadOpVal(&number,4,input,numsex);
|
||||||
PutCTPC();
|
PutCTPC();
|
||||||
printf(" DC I4'%d'", (long) number);
|
printf(" DC I4'%ld'", (long) number);
|
||||||
pc += 4;
|
pc += 4;
|
||||||
count += 4;
|
count += 4;
|
||||||
}
|
}
|
||||||
@ -2265,7 +2265,7 @@ if (constant >= 2) {
|
|||||||
if (constant) {
|
if (constant) {
|
||||||
ReadOpVal(&number,4,input,numsex);
|
ReadOpVal(&number,4,input,numsex);
|
||||||
PutCTPC();
|
PutCTPC();
|
||||||
printf(" DC I4'%d'", (long) number);
|
printf(" DC I4'%ld'", (long) number);
|
||||||
pc += 4;
|
pc += 4;
|
||||||
count += 4;
|
count += 4;
|
||||||
}
|
}
|
||||||
@ -2500,7 +2500,7 @@ while (NextSeg()) {
|
|||||||
ch = 0;
|
ch = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
printf("%02X", ch);
|
printf("%02lX", ch);
|
||||||
if ((ch & 127) > 31)
|
if ((ch & 127) > 31)
|
||||||
chline[k] = ch & 127;
|
chline[k] = ch & 127;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user