From: jasper Date: Tue, 22 Jul 2014 14:52:35 +0000 (+0000) Subject: better warning for 8bit cards X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2e257b1f7d075b77bedebc2616b3d02424249fe8;p=openbsd better warning for 8bit cards --- diff --git a/sys/arch/octeon/dev/octcf.c b/sys/arch/octeon/dev/octcf.c index 42087e7f09d..42e96a3da35 100644 --- a/sys/arch/octeon/dev/octcf.c +++ b/sys/arch/octeon/dev/octcf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octcf.c,v 1.21 2014/07/22 14:49:49 jasper Exp $ */ +/* $OpenBSD: octcf.c,v 1.22 2014/07/22 14:52:35 jasper Exp $ */ /* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */ /* @@ -198,7 +198,7 @@ octcfattach(struct device *parent, struct device *self, void *aux) if ((cfg & BOOT_CFG_BASE_MASK) == (OCTEON_CF_BASE >> BOOT_CFG_BASE_SHIFT)) { if ((cfg & BOOT_CFG_WIDTH_MASK) == 0) - printf(": Doesn't support 8bit card\n"); + printf(": doesn't support 8bit cards\n"); break; } } @@ -458,6 +458,7 @@ octcfopen(dev_t dev, int flag, int fmt, struct proc *p) } part = DISKPART(dev); + if ((error = disk_openpart(&wd->sc_dk, part, fmt, 1)) != 0) goto bad;