mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Print `slicename' and not a bogus pointer in diskerr()
This commit is contained in:
parent
074c4a4e2e
commit
222d875bec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5185
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue