Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/xen make compile with XBD_DEBUG



details:   https://anonhg.NetBSD.org/src/rev/c5ddcf0c591b
branches:  trunk
changeset: 971219:c5ddcf0c591b
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Apr 18 16:58:00 2020 +0000

description:
make compile with XBD_DEBUG

diffstat:

 sys/arch/xen/xen/xbd_xenbus.c |  20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diffs (76 lines):

diff -r 8c2af17dde39 -r c5ddcf0c591b sys/arch/xen/xen/xbd_xenbus.c
--- a/sys/arch/xen/xen/xbd_xenbus.c     Sat Apr 18 15:56:26 2020 +0000
+++ b/sys/arch/xen/xen/xbd_xenbus.c     Sat Apr 18 16:58:00 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbd_xenbus.c,v 1.118 2020/04/17 10:35:06 jdolecek Exp $      */
+/*      $NetBSD: xbd_xenbus.c,v 1.119 2020/04/18 16:58:00 jdolecek Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.118 2020/04/17 10:35:06 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.119 2020/04/18 16:58:00 jdolecek Exp $");
 
 #include "opt_xen.h"
 
@@ -281,12 +281,6 @@
        struct xenbusdev_attach_args *xa = aux;
        blkif_sring_t *ring;
        RING_IDX i;
-#ifdef XBD_DEBUG
-       char **dir, *val;
-       int dir_n = 0;
-       char id_str[20];
-       int err;
-#endif
 
        config_pending_incr(self);
        aprint_normal(": Xen Virtual Block Device Interface\n");
@@ -933,7 +927,7 @@
        if ((flags & FWRITE) && (sc->sc_info & VDISK_READONLY))
                return EROFS;
 
-       DPRINTF(("xbdopen(0x%04x, %d)\n", dev, flags));
+       DPRINTF(("xbdopen(%" PRIx64 ", %d)\n", dev, flags));
        return dk_open(&sc->sc_dksc, dev, flags, fmt, l);
 }
 
@@ -944,7 +938,7 @@
 
        sc = device_lookup_private(&xbd_cd, DISKUNIT(dev));
 
-       DPRINTF(("xbdclose(%d, %d)\n", dev, flags));
+       DPRINTF(("xbdclose(%" PRIx64 ", %d)\n", dev, flags));
        return dk_close(&sc->sc_dksc, dev, flags, fmt, l);
 }
 
@@ -979,7 +973,7 @@
 {
        struct  xbd_xenbus_softc *sc;
 
-       DPRINTF(("xbdsize(%d)\n", dev));
+       DPRINTF(("xbdsize(%" PRIx64 ")\n", dev));
 
        sc = device_lookup_private(&xbd_cd, DISKUNIT(dev));
        if (sc == NULL || sc->sc_shutdown != BLKIF_SHUTDOWN_RUN)
@@ -1024,7 +1018,7 @@
        blkif_request_t *req;
        int notify;
 
-       DPRINTF(("xbdioctl(%d, %08lx, %p, %d, %p)\n",
+       DPRINTF(("xbdioctl(%" PRIx64 ", %08lx, %p, %d, %p)\n",
            dev, cmd, data, flag, l));
        dksc = &sc->sc_dksc;
 
@@ -1093,7 +1087,7 @@
        if (sc == NULL)
                return (ENXIO);
 
-       DPRINTF(("xbddump(%d, %" PRId64 ", %p, %lu)\n", dev, blkno, va,
+       DPRINTF(("xbddump(%" PRIx64 ", %" PRId64 ", %p, %lu)\n", dev, blkno, va,
            (unsigned long)size));
        return dk_dump(&sc->sc_dksc, dev, blkno, va, size, 0);
 }



Home | Main Index | Thread Index | Old Index