summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
committerobrien <obrien@FreeBSD.org>2000-12-09 09:35:55 +0000
commitc2ee1dcc02035d781d6c70f06df7106979a9f870 (patch)
tree757810dc1fdd19be4c8125ccb9e8beb1aff3d929 /sys
parentc174181f432119d1dae3f5e58ecc14c8d7b6f545 (diff)
downloadFreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.zip
FreeBSD-src-c2ee1dcc02035d781d6c70f06df7106979a9f870.tar.gz
Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_conf.c3
-rw-r--r--sys/kern/vfs_mount.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c
index 2c1b7a3..2ca46185 100644
--- a/sys/kern/vfs_conf.c
+++ b/sys/kern/vfs_conf.c
@@ -55,6 +55,7 @@
#include <sys/disklabel.h>
#include <sys/conf.h>
#include <sys/cons.h>
+#include <paths.h>
#include "opt_ddb.h"
#ifdef DDB
@@ -253,7 +254,7 @@ vfs_mountroot_ask(void)
for(;;) {
printf("\nManual root filesystem specification:\n");
printf(" <fstype>:<device> Mount <device> using filesystem <fstype>\n");
- printf(" eg. ufs:/dev/da0s1a\n");
+ printf(" eg. ufs:%sda0s1a\n", _PATH_DEV);
printf(" ? List valid disk boot devices\n");
printf(" <empty line> Abort manual input\n");
printf("\nmountroot> ");
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 2c1b7a3..2ca46185 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -55,6 +55,7 @@
#include <sys/disklabel.h>
#include <sys/conf.h>
#include <sys/cons.h>
+#include <paths.h>
#include "opt_ddb.h"
#ifdef DDB
@@ -253,7 +254,7 @@ vfs_mountroot_ask(void)
for(;;) {
printf("\nManual root filesystem specification:\n");
printf(" <fstype>:<device> Mount <device> using filesystem <fstype>\n");
- printf(" eg. ufs:/dev/da0s1a\n");
+ printf(" eg. ufs:%sda0s1a\n", _PATH_DEV);
printf(" ? List valid disk boot devices\n");
printf(" <empty line> Abort manual input\n");
printf("\nmountroot> ");
OpenPOWER on IntegriCloud