summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/i386/bios.c6
-rw-r--r--sys/arch/i386/i386/ioapic.c4
-rw-r--r--sys/arch/i386/pci/pcibios.c6
-rw-r--r--sys/kern/vfs_cluster.c4
-rw-r--r--sys/msdosfs/msdosfs_conv.c4
-rw-r--r--sys/msdosfs/msdosfs_denode.c4
-rw-r--r--sys/msdosfs/msdosfs_vnops.c4
-rw-r--r--sys/net/if_spppsubr.c4
8 files changed, 18 insertions, 18 deletions
diff --git a/sys/arch/i386/i386/bios.c b/sys/arch/i386/i386/bios.c
index 555b442948d..3f3822df245 100644
--- a/sys/arch/i386/i386/bios.c
+++ b/sys/arch/i386/i386/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.100 2013/09/29 12:56:31 kettenis Exp $ */
+/* $OpenBSD: bios.c,v 1.101 2013/10/01 20:22:11 sf Exp $ */
/*
* Copyright (c) 1997-2001 Michael Shalayeff
@@ -238,7 +238,7 @@ biosattach(struct device *parent, struct device *self, void *aux)
bios32_entry.segment = GSEL(GCODE_SEL, SEL_KPL);
bios32_entry.offset = (u_int32_t)ISA_HOLE_VADDR(h->entry);
- printf(", BIOS32 rev. %d @ 0x%lx", h->rev, h->entry);
+ printf(", BIOS32 rev. %d @ 0x%x", h->rev, h->entry);
break;
}
}
@@ -285,7 +285,7 @@ biosattach(struct device *parent, struct device *self, void *aux)
for (; pa < end; pa+= NBPG, eva+= NBPG)
pmap_kenter_pa(eva, pa, VM_PROT_READ);
- printf(", SMBIOS rev. %d.%d @ 0x%lx (%d entries)",
+ printf(", SMBIOS rev. %d.%d @ 0x%x (%hd entries)",
sh->majrev, sh->minrev, sh->addr, sh->count);
/*
* Unbelievably the SMBIOS version number
diff --git a/sys/arch/i386/i386/ioapic.c b/sys/arch/i386/i386/ioapic.c
index 89863102702..415668023e3 100644
--- a/sys/arch/i386/i386/ioapic.c
+++ b/sys/arch/i386/i386/ioapic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ioapic.c,v 1.29 2013/07/10 21:31:11 kettenis Exp $ */
+/* $OpenBSD: ioapic.c,v 1.30 2013/10/01 20:22:11 sf Exp $ */
/* $NetBSD: ioapic.c,v 1.7 2003/07/14 22:32:40 lukem Exp $ */
/*-
@@ -300,7 +300,7 @@ ioapic_attach(struct device *parent, struct device *self, void *aux)
ioapic_add(sc);
- printf(" pa 0x%lx", aaa->apic_address);
+ printf(" pa 0x%x", aaa->apic_address);
if (bus_mem_add_mapping(aaa->apic_address, PAGE_SIZE, 0, &bh) != 0) {
printf(", map failed\n");
diff --git a/sys/arch/i386/pci/pcibios.c b/sys/arch/i386/pci/pcibios.c
index 479954a71d4..47b5003ef27 100644
--- a/sys/arch/i386/pci/pcibios.c
+++ b/sys/arch/i386/pci/pcibios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcibios.c,v 1.41 2013/10/01 20:05:58 sf Exp $ */
+/* $OpenBSD: pcibios.c,v 1.42 2013/10/01 20:22:12 sf Exp $ */
/* $NetBSD: pcibios.c,v 1.5 2000/08/01 05:23:59 uch Exp $ */
/*
@@ -151,7 +151,7 @@ pcibiosprobe(struct device *parent, void *match, void *aux)
rv = bios32_service(PCIBIOS_SIGNATURE, &pcibios_entry,
&pcibios_entry_info);
- PCIBIOS_PRINTV(("pcibiosprobe: 0x%lx:0x%lx at 0x%lx[0x%lx]\n",
+ PCIBIOS_PRINTV(("pcibiosprobe: 0x%hx:0x%x at 0x%x[0x%x]\n",
pcibios_entry.segment, pcibios_entry.offset,
pcibios_entry_info.bei_base, pcibios_entry_info.bei_size));
@@ -172,7 +172,7 @@ pcibiosattach(struct device *parent, struct device *self, void *aux)
&rev_min, &mech1, &mech2,
&scmech1, &scmech2, &sc->max_bus);
- printf(": rev %d.%d @ 0x%lx/0x%lx\n",
+ printf(": rev %d.%d @ 0x%x/0x%x\n",
rev_maj, rev_min >> 4, pcibios_entry_info.bei_base,
pcibios_entry_info.bei_size);
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index f9df40efae0..35263ab72e5 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_cluster.c,v 1.39 2013/06/11 16:42:16 deraadt Exp $ */
+/* $OpenBSD: vfs_cluster.c,v 1.40 2013/10/01 20:22:12 sf Exp $ */
/* $NetBSD: vfs_cluster.c,v 1.12 1996/04/22 01:39:05 christos Exp $ */
/*
@@ -175,7 +175,7 @@ cluster_wbuild(struct vnode *vp, struct buf *last_bp, long size,
#ifdef DIAGNOSTIC
if (size != vp->v_mount->mnt_stat.f_iosize)
- panic("cluster_wbuild: size %ld != filesize %ld",
+ panic("cluster_wbuild: size %ld != filesize %u",
size, vp->v_mount->mnt_stat.f_iosize);
#endif
redo:
diff --git a/sys/msdosfs/msdosfs_conv.c b/sys/msdosfs/msdosfs_conv.c
index 727acd22826..d956aa0ffc8 100644
--- a/sys/msdosfs/msdosfs_conv.c
+++ b/sys/msdosfs/msdosfs_conv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_conv.c,v 1.15 2012/09/06 19:06:04 krw Exp $ */
+/* $OpenBSD: msdosfs_conv.c,v 1.16 2013/10/01 20:22:13 sf Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.24 1997/10/17 11:23:54 ws Exp $ */
/*-
@@ -209,7 +209,7 @@ dos2unixtime(u_int dd, u_int dt, u_int dh, struct timespec *tsp)
*/
month = (dd & DD_MONTH_MASK) >> DD_MONTH_SHIFT;
if (month == 0) {
- printf("dos2unixtime(): month value out of range (%ld)\n",
+ printf("dos2unixtime(): month value out of range (%u)\n",
month);
month = 1;
}
diff --git a/sys/msdosfs/msdosfs_denode.c b/sys/msdosfs/msdosfs_denode.c
index d384a8b1053..77fa17d4117 100644
--- a/sys/msdosfs/msdosfs_denode.c
+++ b/sys/msdosfs/msdosfs_denode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_denode.c,v 1.45 2013/06/11 16:42:16 deraadt Exp $ */
+/* $OpenBSD: msdosfs_denode.c,v 1.46 2013/10/01 20:22:13 sf Exp $ */
/* $NetBSD: msdosfs_denode.c,v 1.23 1997/10/17 11:23:58 ws Exp $ */
/*-
@@ -387,7 +387,7 @@ detrunc(struct denode *dep, uint32_t length, int flags, struct ucred *cred,
* directory's life.
*/
if ((DETOV(dep)->v_flag & VROOT) && !FAT32(pmp)) {
- printf("detrunc(): can't truncate root directory, clust %ld, offset %ld\n",
+ printf("detrunc(): can't truncate root directory, clust %u, offset %u\n",
dep->de_dirclust, dep->de_diroffset);
return (EINVAL);
}
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c
index 23f61e343c9..0cd3f8736f7 100644
--- a/sys/msdosfs/msdosfs_vnops.c
+++ b/sys/msdosfs/msdosfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msdosfs_vnops.c,v 1.89 2013/09/14 02:28:03 guenther Exp $ */
+/* $OpenBSD: msdosfs_vnops.c,v 1.90 2013/10/01 20:22:13 sf Exp $ */
/* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */
/*-
@@ -1821,7 +1821,7 @@ msdosfs_print(void *v)
struct denode *dep = VTODE(ap->a_vp);
printf(
- "tag VT_MSDOSFS, startcluster %ld, dircluster %ld, diroffset %ld ",
+ "tag VT_MSDOSFS, startcluster %u, dircluster %u, diroffset %u ",
dep->de_StartCluster, dep->de_dirclust, dep->de_diroffset);
printf(" dev %d, %d, %s\n",
major(dep->de_dev), minor(dep->de_dev),
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 5a898affee4..66a61597b2d 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.107 2013/08/16 12:29:18 mpi Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.108 2013/10/01 20:22:13 sf Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -1260,7 +1260,7 @@ sppp_cisco_send(struct sppp *sp, u_int32_t type, u_int32_t par1, u_int32_t par2)
if (debug)
log(LOG_DEBUG, SPP_FMT
- "cisco output: <0x%lx 0x%lx 0x%lx 0x%x 0x%x-0x%x>\n",
+ "cisco output: <0x%x 0x%x 0x%x 0x%x 0x%x-0x%x>\n",
SPP_ARGS(ifp), ntohl(ch->type), ch->par1, ch->par2,
(u_int)ch->rel, (u_int)ch->time0, (u_int)ch->time1);