Fix printf format problems that were stopping LINT on alpha
Submitted by: jmallett, many others Approved by: re
This commit is contained in:
parent
ffb309581f
commit
cec762959b
@ -1927,7 +1927,7 @@ DB_COMMAND(ahd_in, ahd_ddb_in)
|
|||||||
if (count <= 0)
|
if (count <= 0)
|
||||||
count = 1;
|
count = 1;
|
||||||
while (--count >= 0) {
|
while (--count >= 0) {
|
||||||
db_printf("%04x (M)%x: \t", addr,
|
db_printf("%04jx (M)%x: \t", (uintmax_t)addr,
|
||||||
ahd_inb(ahd_ddb_softc, MODE_PTR));
|
ahd_inb(ahd_ddb_softc, MODE_PTR));
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case 1:
|
case 1:
|
||||||
@ -1986,9 +1986,9 @@ DB_SET(ahd_out, ahd_ddb_out, db_cmd_set, CS_MORE, NULL)
|
|||||||
ahd_outl(ahd_ddb_softc, addr, new_value);
|
ahd_outl(ahd_ddb_softc, addr, new_value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
db_printf("%04x (M)%x: \t0x%x\t=\t0x%x",
|
db_printf("%04jx (M)%x: \t0x%jx\t=\t0x%jx",
|
||||||
addr, ahd_inb(ahd_ddb_softc, MODE_PTR),
|
(uintmax_t)addr, ahd_inb(ahd_ddb_softc, MODE_PTR),
|
||||||
old_value, new_value);
|
(uintmax_t)old_value, (uintmax_t)new_value);
|
||||||
addr += size;
|
addr += size;
|
||||||
}
|
}
|
||||||
db_skip_to_eol();
|
db_skip_to_eol();
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
#include <sys/stdint.h>
|
||||||
#include <sys/bus.h> /* For device_t */
|
#include <sys/bus.h> /* For device_t */
|
||||||
#if __FreeBSD_version >= 500000
|
#if __FreeBSD_version >= 500000
|
||||||
#include <sys/endian.h>
|
#include <sys/endian.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user