[FASTFAT] Don't mess my debug log when partition SysType is printed! (when invalid...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 13 Oct 2018 17:57:24 +0000 (19:57 +0200)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 13 Oct 2018 17:57:24 +0000 (19:57 +0200)
drivers/filesystems/fastfat/fsctl.c

index b7e576d..6523487 100644 (file)
@@ -280,8 +280,14 @@ VfatHasFileSystem(
                 BootFatX->SysType[2] != 'T' ||
                 BootFatX->SysType[3] != 'X')
             {
-                DPRINT1("SysType %c%c%c%c\n", BootFatX->SysType[0], BootFatX->SysType[1], BootFatX->SysType[2], BootFatX->SysType[3]);
-                *RecognizedFS=FALSE;
+                DPRINT1("SysType %02X%02X%02X%02X (%c%c%c%c)\n",
+                        BootFatX->SysType[0], BootFatX->SysType[1], BootFatX->SysType[2], BootFatX->SysType[3],
+                        isprint(BootFatX->SysType[0]) ? BootFatX->SysType[0] : '.',
+                        isprint(BootFatX->SysType[1]) ? BootFatX->SysType[1] : '.',
+                        isprint(BootFatX->SysType[2]) ? BootFatX->SysType[2] : '.',
+                        isprint(BootFatX->SysType[3]) ? BootFatX->SysType[3] : '.');
+
+                *RecognizedFS = FALSE;
             }
 
             if (*RecognizedFS &&