diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cdutils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index ff26358..000f7cc 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -325,7 +325,7 @@ void cdutils::write_file(Handle * file, int type, int number) { } void cdutils::show_head_entry(void) { - printm(M_BARE, "Sector - Size - Date - Time - Flags - Name\n"); + printm(M_BARE, "Sector - Size - Date - Time - Flags - Name\n"); } int cdutils::show_entry(struct DirEntry * dir) { @@ -337,8 +337,8 @@ int cdutils::show_entry(struct DirEntry * dir) { strncpy(pbuf, (char *) &(dir->id), dir->N); pbuf[dir->N] = 0; - printm(M_BARE, "%6i - %8i - %2i/%02i/%02i - %2i:%02i:%02i%+03.1f - %c%c%c%c%c%c%c%c - %s\n", - dir->Sector, dir->Size, dir->Day, dir->Month, dir->Year, dir->Hour, dir->Minute, dir->Second, ((float) dir->Offset) / 4, + printm(M_BARE, "%6i - %8i - %2i/%02i/%04i - %2i:%02i:%02i%+03.1f - %c%c%c%c%c%c%c%c - %s\n", + dir->Sector, dir->Size, dir->Day, dir->Month, dir->Year + 1900, dir->Hour, dir->Minute, dir->Second, ((float) dir->Offset) / 4, dir->Flags & 1 ? 'H' : '-', dir->Flags & 2 ? 'D' : '-', dir->Flags & 4 ? 'A' : '-', dir->Flags & 8 ? 'R' : '-', dir->Flags & 16 ? 'P' : '-', dir->Flags & 32 ? '1' : '-', dir->Flags & 64 ? '1' : '-', dir->Flags & 128 ? 'C' : '-', pbuf); return dir->R; |