diff options
author | 2017-03-13 01:00:15 +0000 | |
---|---|---|
committer | 2017-03-13 01:00:15 +0000 | |
commit | 87eabc7c7074a99d1bf4f2713cccff2a9cb898b8 (patch) | |
tree | de24bca85e0b7683ea813d6b31d424c90d2315fa /sys/dev/pv/xen.c | |
parent | Don't limit physmem to 2GB confirmed to work with 16GB by deraadt@. (diff) | |
download | wireguard-openbsd-87eabc7c7074a99d1bf4f2713cccff2a9cb898b8.tar.xz wireguard-openbsd-87eabc7c7074a99d1bf4f2713cccff2a9cb898b8.zip |
Fixup format string and type issues found by cppcheck
Diffstat (limited to 'sys/dev/pv/xen.c')
-rw-r--r-- | sys/dev/pv/xen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c index 5e7c9c98b5b..b64043ade0d 100644 --- a/sys/dev/pv/xen.c +++ b/sys/dev/pv/xen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xen.c,v 1.79 2017/02/24 16:58:12 mikeb Exp $ */ +/* $OpenBSD: xen.c,v 1.80 2017/03/13 01:00:15 mikeb Exp $ */ /* * Copyright (c) 2015, 2016, 2017 Mike Belopuhov @@ -276,7 +276,7 @@ xen_init_hypercall(struct xen_softc *sc) /* We don't support more than one hypercall page */ if (regs[0] != 1) { - printf(": requested %d hypercall pages\n", regs[0]); + printf(": requested %u hypercall pages\n", regs[0]); return (-1); } @@ -673,7 +673,7 @@ xen_intr(void) continue; port = (row * LONG_BIT) + bit; if ((xi = xen_intsrc_acquire(sc, port)) == NULL) { - printf("%s: unhandled interrupt on port %u\n", + printf("%s: unhandled interrupt on port %d\n", sc->sc_dev.dv_xname, port); continue; } @@ -976,7 +976,7 @@ xen_init_grant_tables(struct xen_softc *sc) return (-1); } - printf(", %u grant table frames", sc->sc_gntmax); + printf(", %d grant table frames", sc->sc_gntmax); xen_bus_dma_tag._cookie = sc; |