diff options
author | bde <bde@FreeBSD.org> | 1994-12-22 04:42:31 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1994-12-22 04:42:31 +0000 |
commit | 9ca60a2202b99957c28608e2f250fa6f474f4ef1 (patch) | |
tree | 80b917fbc45eed911ac49eec49c58f8f2763d571 | |
parent | 7d587b958356f1a73ccf6a7794d5edc094412662 (diff) | |
download | FreeBSD-src-9ca60a2202b99957c28608e2f250fa6f474f4ef1.zip FreeBSD-src-9ca60a2202b99957c28608e2f250fa6f474f4ef1.tar.gz |
Print `slicename' and not a bogus pointer in diskerr()
-rw-r--r-- | sys/kern/subr_disklabel.c | 4 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_disksubr.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c index cab1e20..d5e699e 100644 --- a/sys/kern/subr_disklabel.c +++ b/sys/kern/subr_disklabel.c @@ -42,7 +42,7 @@ * SUCH DAMAGE. * * @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94 - * $Id: ufs_disksubr.c,v 1.6 1994/10/27 20:45:12 jkh Exp $ + * $Id: ufs_disksubr.c,v 1.7 1994/12/16 16:31:23 bde Exp $ */ #include <sys/param.h> @@ -632,7 +632,7 @@ diskerr(bp, dname, what, pri, blkdone, lp) slicename[0] = '\0'; if (slice != WHOLE_DISK_SLICE) sprintf(slicename, "s%d", slice); - (*pr)("%s%d%s", dname, unit, slice); + (*pr)("%s%d%s", dname, unit, slicename); #ifndef PRE_DISKSLICE_COMPAT if (slice != WHOLE_DISK_SLICE) #endif diff --git a/sys/ufs/ufs/ufs_disksubr.c b/sys/ufs/ufs/ufs_disksubr.c index cab1e20..d5e699e 100644 --- a/sys/ufs/ufs/ufs_disksubr.c +++ b/sys/ufs/ufs/ufs_disksubr.c @@ -42,7 +42,7 @@ * SUCH DAMAGE. * * @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94 - * $Id: ufs_disksubr.c,v 1.6 1994/10/27 20:45:12 jkh Exp $ + * $Id: ufs_disksubr.c,v 1.7 1994/12/16 16:31:23 bde Exp $ */ #include <sys/param.h> @@ -632,7 +632,7 @@ diskerr(bp, dname, what, pri, blkdone, lp) slicename[0] = '\0'; if (slice != WHOLE_DISK_SLICE) sprintf(slicename, "s%d", slice); - (*pr)("%s%d%s", dname, unit, slice); + (*pr)("%s%d%s", dname, unit, slicename); #ifndef PRE_DISKSLICE_COMPAT if (slice != WHOLE_DISK_SLICE) #endif |