Fix warnings: a variable that was unused, a variable that
was unused unless sun was defined and printing of u_longs with %x. PR: bin/39818 Submitted by: dan@obluda.cz MFC after: 1 week
This commit is contained in:
parent
ebd67f814e
commit
fbab5c5d7a
@ -684,9 +684,8 @@ u_char *ram;
|
||||
u_long w;
|
||||
char c[4];
|
||||
} w1, w2;
|
||||
#endif
|
||||
int n;
|
||||
int cnt = 0;
|
||||
#endif
|
||||
u_char *bufp;
|
||||
u_long *lp;
|
||||
|
||||
@ -1338,7 +1337,7 @@ char *argv[];
|
||||
hb3 = CP_READ(Mon->mon_bstat);
|
||||
if (hb3 != BOOT_RUNNING) {
|
||||
if (verbose)
|
||||
printf("bstat %x\n", hb3);
|
||||
printf("bstat %lx\n", hb3);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -1346,7 +1345,7 @@ char *argv[];
|
||||
delay(1);
|
||||
hb2 = CP_READ(aap->aali_heartbeat);
|
||||
if (verbose)
|
||||
printf("hb %x %x\n", hb1, hb2);
|
||||
printf("hb %lx %lx\n", hb1, hb2);
|
||||
if (hb1 < hb2)
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user