Skip to content

Commit

Permalink
Cosmetic changes to the code
Browse files Browse the repository at this point in the history
- Fix output of filesystems in mounter.c debugging
- Fix comment about jumper settings in attach.c
  • Loading branch information
reinauer committed Jan 5, 2025
1 parent 631f377 commit c3c0101
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ init_chan(device_t self, UBYTE *boardnum)
* SW 8 Off SCSI LUNs Enabled chan->chan_nluns
* SW 7 Off Internal Termination On Handled by hardware
* SW 6 Off Synchronous SCSI Mode sc->sc_nosync
* SW 5 Off Short Spinup NOT SUPPORTED YET
* SW 5 Off Short Spinup ms.slowSpinup
* SW 4 Off SCSI-2 Fast Bus Mode NOT SUPPORTED YET
* SW 3 Off ADR2=1 chan->chan_id
* SW 2 Off ADR1=1 chan->chan_id
Expand Down
28 changes: 18 additions & 10 deletions mounter.c
Original file line number Diff line number Diff line change
Expand Up @@ -954,8 +954,8 @@ static void list_filesystems(void)
return;
}

printf("DosType Version Creator\n");
printf("---------------------------------------------------\n");
printf("DosType Version Creator\n");
printf("---------------------------------------------------------------------------\n");
for (fse = (struct FileSysEntry *)FileSysResBase->fsr_FileSysEntries.lh_Head;
fse->fse_Node.ln_Succ;
fse = (struct FileSysEntry *)fse->fse_Node.ln_Succ) {
Expand All @@ -966,14 +966,22 @@ static void list_filesystems(void)
putchar((fse->fse_DosType & 0xFF) < 0x30
? (fse->fse_DosType & 0xFF) + 0x30
: (fse->fse_DosType & 0xFF));
printf(" %s%d", (fse->fse_Version >> 16)<10 ? " " : "",
(fse->fse_Version >> 16));
printf(".%d%s", (fse->fse_Version & 0xFFFF),
(fse->fse_Version & 0xFFFF)<10 ? " " : "");
if(fse->fse_Node.ln_Name[0])
printf(" %s",fse->fse_Node.ln_Name);
else
printf(" N/A\n");
printf(" %3d.%-3d", (fse->fse_Version >> 16), (fse->fse_Version & 0xFFFF));
if(fse->fse_Node.ln_Name[0]) {
char term;
int name_len = strlen(fse->fse_Node.ln_Name);

printf(" %.55s", fse->fse_Node.ln_Name);
if (name_len >= 55) {
printf("...");
name_len = 55;
}
term = fse->fse_Node.ln_Name[name_len-1];
if (term != 10 && term != 13)
printf("\n");
} else {
printf(" N/A\n");
}
}
#endif
}
Expand Down

0 comments on commit c3c0101

Please sign in to comment.