diff options
author | rnordier <rnordier@FreeBSD.org> | 1999-01-25 23:07:02 +0000 |
---|---|---|
committer | rnordier <rnordier@FreeBSD.org> | 1999-01-25 23:07:02 +0000 |
commit | 7332041031f8b27a81d26881a3601d76ede641f0 (patch) | |
tree | 7b2e7b5422f1fa3ec8c36a3bad3d1e27894e9d0f | |
parent | 06f295fcffb9814ae716634e8bc18ce1bb09111d (diff) | |
download | FreeBSD-src-7332041031f8b27a81d26881a3601d76ede641f0.zip FreeBSD-src-7332041031f8b27a81d26881a3601d76ede641f0.tar.gz |
Fix a couple of further bugs: missing argument to sprintf() and
"==" used for "=".
-rw-r--r-- | sys/boot/i386/libi386/biosdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c index 9a84030..7f5abd1 100644 --- a/sys/boot/i386/libi386/biosdisk.c +++ b/sys/boot/i386/libi386/biosdisk.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: biosdisk.c,v 1.21 1999/01/24 00:12:04 msmith Exp $ + * $Id: biosdisk.c,v 1.22 1999/01/24 06:03:44 msmith Exp $ */ /* @@ -268,7 +268,7 @@ bd_printslice(struct open_disk *od, int offset, char *prefix) return; lp =(struct disklabel *)(&buf[0]); if (lp->d_magic != DISKMAGIC) { - sprintf(line, "%s: bad disklabel\n"); + sprintf(line, "bad disklabel\n"); pager_output(line); return; } @@ -393,7 +393,7 @@ bd_opendisk(struct open_disk **odp, struct i386_devdesc *dev) /* Is this a request for the whole disk? */ if (dev->d_kind.biosdisk.slice == -1) { - sector == 0; + sector = 0; goto unsliced; } |