mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
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
This commit is contained in:
parent
e72a98f4bf
commit
dc401d4927
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175853
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user