summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2008-01-31 13:16:29 +0000
committeryar <yar@FreeBSD.org>2008-01-31 13:16:29 +0000
commit39c1449b60a85d4949259fb65114bbeabdefc1f6 (patch)
tree737347c2f022f2a07fcd1ea452ae3eec6af588cd /sbin
parent94236d3d42c3eeb2260a8c4718b8f469ee63cd4b (diff)
downloadFreeBSD-src-39c1449b60a85d4949259fb65114bbeabdefc1f6.zip
FreeBSD-src-39c1449b60a85d4949259fb65114bbeabdefc1f6.tar.gz
Use consistent style in user prompts: the question is in a new line
and begins with a capital letter. The rest of pwarn/ask pairs here follows this style. Requested by: bde
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck_msdosfs/boot.c4
-rw-r--r--sbin/fsck_msdosfs/fat.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sbin/fsck_msdosfs/boot.c b/sbin/fsck_msdosfs/boot.c
index 07d62ac..ae786e7 100644
--- a/sbin/fsck_msdosfs/boot.c
+++ b/sbin/fsck_msdosfs/boot.c
@@ -123,8 +123,8 @@ readboot(dosfs, boot)
|| fsinfo[0x3fd]
|| fsinfo[0x3fe] != 0x55
|| fsinfo[0x3ff] != 0xaa) {
- pwarn("Invalid signature in fsinfo block, ");
- if (ask(0, "fix")) {
+ pwarn("Invalid signature in fsinfo block\n");
+ if (ask(0, "Fix")) {
memcpy(fsinfo, "RRaA", 4);
memcpy(fsinfo + 0x1e4, "rrAa", 4);
fsinfo[0x1fc] = fsinfo[0x1fd] = 0;
diff --git a/sbin/fsck_msdosfs/fat.c b/sbin/fsck_msdosfs/fat.c
index 0b0bd9e..dc84239 100644
--- a/sbin/fsck_msdosfs/fat.c
+++ b/sbin/fsck_msdosfs/fat.c
@@ -338,9 +338,9 @@ clustdiffer(cl_t cl, cl_t *cp1, cl_t *cp2, int fatnum)
if ((*cp1 != CLUST_FREE && *cp1 < CLUST_BAD
&& *cp2 != CLUST_FREE && *cp2 < CLUST_BAD)
|| (*cp1 > CLUST_BAD && *cp2 > CLUST_BAD)) {
- pwarn("Cluster %u is marked %s with different indicators, ",
+ pwarn("Cluster %u is marked %s with different indicators\n",
cl, rsrvdcltype(*cp1));
- if (ask(1, "fix")) {
+ if (ask(1, "Fix")) {
*cp2 = *cp1;
return FSFATMOD;
}
@@ -678,7 +678,7 @@ checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat)
if (boot->FSFree != boot->NumFree) {
pwarn("Free space in FSInfo block (%d) not correct (%d)\n",
boot->FSFree, boot->NumFree);
- if (ask(1, "fix")) {
+ if (ask(1, "Fix")) {
boot->FSFree = boot->NumFree;
ret = 1;
}
@@ -686,7 +686,7 @@ checklost(int dosfs, struct bootblock *boot, struct fatEntry *fat)
if (boot->NumFree && fat[boot->FSNext].next != CLUST_FREE) {
pwarn("Next free cluster in FSInfo block (%u) not free\n",
boot->FSNext);
- if (ask(1, "fix"))
+ if (ask(1, "Fix"))
for (head = CLUST_FIRST; head < boot->NumClusters; head++)
if (fat[head].next == CLUST_FREE) {
boot->FSNext = head;
OpenPOWER on IntegriCloud