summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2002-11-28 04:09:29 +0000
committerscottl <scottl@FreeBSD.org>2002-11-28 04:09:29 +0000
commit32ff33b2d5a42206e5281dce8f544e8a7983d281 (patch)
tree71ef1122a67c0a92733708b9a976db591c8638d2 /sys
parent99d4b2d8ed2d7f9eb68bde11d0fd0c03adf66bc6 (diff)
downloadFreeBSD-src-32ff33b2d5a42206e5281dce8f544e8a7983d281.zip
FreeBSD-src-32ff33b2d5a42206e5281dce8f544e8a7983d281.tar.gz
Revisit the printf format fixes for alpha. intmax_t doesn't exist in
RELENG_4, so cast to u_long in order to stay compatible. Approved by: re (blanket)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/aic7xxx/aic79xx_osm.c8
-rw-r--r--sys/dev/aic7xxx/aic79xx_osm.h1
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/aic7xxx/aic79xx_osm.c b/sys/dev/aic7xxx/aic79xx_osm.c
index a63fcbc..f136395 100644
--- a/sys/dev/aic7xxx/aic79xx_osm.c
+++ b/sys/dev/aic7xxx/aic79xx_osm.c
@@ -1927,7 +1927,7 @@ DB_COMMAND(ahd_in, ahd_ddb_in)
if (count <= 0)
count = 1;
while (--count >= 0) {
- db_printf("%04jx (M)%x: \t", (uintmax_t)addr,
+ db_printf("%04lx (M)%x: \t", (u_long)addr,
ahd_inb(ahd_ddb_softc, MODE_PTR));
switch (size) {
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);
break;
}
- db_printf("%04jx (M)%x: \t0x%jx\t=\t0x%jx",
- (uintmax_t)addr, ahd_inb(ahd_ddb_softc, MODE_PTR),
- (uintmax_t)old_value, (uintmax_t)new_value);
+ db_printf("%04lx (M)%x: \t0x%lx\t=\t0x%lx",
+ (u_long)addr, ahd_inb(ahd_ddb_softc, MODE_PTR),
+ (u_long)old_value, (u_long)new_value);
addr += size;
}
db_skip_to_eol();
diff --git a/sys/dev/aic7xxx/aic79xx_osm.h b/sys/dev/aic7xxx/aic79xx_osm.h
index 59c300e..b645010 100644
--- a/sys/dev/aic7xxx/aic79xx_osm.h
+++ b/sys/dev/aic7xxx/aic79xx_osm.h
@@ -42,7 +42,6 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/stdint.h>
#include <sys/bus.h> /* For device_t */
#if __FreeBSD_version >= 500000
#include <sys/endian.h>
OpenPOWER on IntegriCloud