mfi(4): Remove some debug messages.
authorSascha Wildner <saw@online.de>
Wed, 31 Aug 2011 06:53:31 +0000 (08:53 +0200)
committerSascha Wildner <saw@online.de>
Wed, 31 Aug 2011 06:53:31 +0000 (08:53 +0200)
sys/dev/raid/mfi/mfi_syspd.c

index 3119f21..e56dcfb 100644 (file)
@@ -148,7 +148,6 @@ mfi_syspd_attach(device_t dev)
 
        disk_setdiskinfo(&sc->pd_disk, &info);
 
 
        disk_setdiskinfo(&sc->pd_disk, &info);
 
-       device_printf(dev, " SYSPD volume attached\n");
        return (0);
 }
 
        return (0);
 }
 
@@ -158,13 +157,11 @@ mfi_syspd_detach(device_t dev)
        struct mfi_system_pd *sc;
 
        sc = device_get_softc(dev);
        struct mfi_system_pd *sc;
 
        sc = device_get_softc(dev);
-       device_printf(dev, "Detaching syspd\n");
        lockmgr(&sc->pd_controller->mfi_io_lock, LK_EXCLUSIVE);
        if ((sc->pd_flags & MFI_DISK_FLAGS_OPEN) &&
            (sc->pd_controller->mfi_keep_deleted_volumes ||
            sc->pd_controller->mfi_detaching)) {
                lockmgr(&sc->pd_controller->mfi_io_lock, LK_RELEASE);
        lockmgr(&sc->pd_controller->mfi_io_lock, LK_EXCLUSIVE);
        if ((sc->pd_flags & MFI_DISK_FLAGS_OPEN) &&
            (sc->pd_controller->mfi_keep_deleted_volumes ||
            sc->pd_controller->mfi_detaching)) {
                lockmgr(&sc->pd_controller->mfi_io_lock, LK_RELEASE);
-               device_printf(dev,"Cant detach syspd\n");
                return (EBUSY);
        }
        lockmgr(&sc->pd_controller->mfi_io_lock, LK_RELEASE);
                return (EBUSY);
        }
        lockmgr(&sc->pd_controller->mfi_io_lock, LK_RELEASE);
@@ -227,7 +224,6 @@ void
 mfi_syspd_enable(struct mfi_system_pd *sc)
 {
 
 mfi_syspd_enable(struct mfi_system_pd *sc)
 {
 
-       device_printf(sc->pd_dev,"syspd enable \n");
        KKASSERT(lockstatus(&sc->pd_controller->mfi_io_lock, curthread) != 0);
        sc->pd_flags &= ~MFI_DISK_FLAGS_DISABLED;
 }
        KKASSERT(lockstatus(&sc->pd_controller->mfi_io_lock, curthread) != 0);
        sc->pd_flags &= ~MFI_DISK_FLAGS_DISABLED;
 }