mirror of
https://github.com/byteworksinc/DumpObj.git
synced 2024-11-21 23:31:29 +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");
|
||||
break;
|
||||
default:
|
||||
printf("unknown segment: $04X", kind);
|
||||
printf("unknown segment: %04X", kind);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2249,7 +2249,7 @@ if (constant >= 2) {
|
||||
if (constant) {
|
||||
ReadOpVal(&number,4,input,numsex);
|
||||
PutCTPC();
|
||||
printf(" DC I4'%d'", (long) number);
|
||||
printf(" DC I4'%ld'", (long) number);
|
||||
pc += 4;
|
||||
count += 4;
|
||||
}
|
||||
@ -2265,7 +2265,7 @@ if (constant >= 2) {
|
||||
if (constant) {
|
||||
ReadOpVal(&number,4,input,numsex);
|
||||
PutCTPC();
|
||||
printf(" DC I4'%d'", (long) number);
|
||||
printf(" DC I4'%ld'", (long) number);
|
||||
pc += 4;
|
||||
count += 4;
|
||||
}
|
||||
@ -2500,7 +2500,7 @@ while (NextSeg()) {
|
||||
ch = 0;
|
||||
}
|
||||
else
|
||||
printf("%02X", ch);
|
||||
printf("%02lX", ch);
|
||||
if ((ch & 127) > 31)
|
||||
chline[k] = ch & 127;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user