\r\n for strings being displayed by NtDisplayString.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 13 Oct 2013 23:22:03 +0000 (23:22 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 13 Oct 2013 23:22:03 +0000 (23:22 +0000)
[AUTOCHK]: Fix some DPRINTs

svn path=/trunk/; revision=60656

reactos/base/system/autochk/autochk.c
reactos/base/system/smss/smss.c

index 50bf14f..d1cd6a4 100644 (file)
@@ -167,59 +167,59 @@ ChkdskCallback(
     switch(Command)
     {
     case UNKNOWN2:
     switch(Command)
     {
     case UNKNOWN2:
-        DPRINT("UNKNOWN2\r");
+        DPRINT("UNKNOWN2\n");
         break;
 
     case UNKNOWN3:
         break;
 
     case UNKNOWN3:
-        DPRINT("UNKNOWN3\r");
+        DPRINT("UNKNOWN3\n");
         break;
 
     case UNKNOWN4:
         break;
 
     case UNKNOWN4:
-        DPRINT("UNKNOWN4\r");
+        DPRINT("UNKNOWN4\n");
         break;
 
     case UNKNOWN5:
         break;
 
     case UNKNOWN5:
-        DPRINT("UNKNOWN5\r");
+        DPRINT("UNKNOWN5\n");
         break;
 
     case UNKNOWN9:
         break;
 
     case UNKNOWN9:
-        DPRINT("UNKNOWN9\r");
+        DPRINT("UNKNOWN9\n");
         break;
 
     case UNKNOWNA:
         break;
 
     case UNKNOWNA:
-        DPRINT("UNKNOWNA\r");
+        DPRINT("UNKNOWNA\n");
         break;
 
     case UNKNOWNC:
         break;
 
     case UNKNOWNC:
-        DPRINT("UNKNOWNC\r");
+        DPRINT("UNKNOWNC\n");
         break;
 
     case UNKNOWND:
         break;
 
     case UNKNOWND:
-        DPRINT("UNKNOWND\r");
+        DPRINT("UNKNOWND\n");
         break;
 
     case INSUFFICIENTRIGHTS:
         break;
 
     case INSUFFICIENTRIGHTS:
-        DPRINT("INSUFFICIENTRIGHTS\r");
+        DPRINT("INSUFFICIENTRIGHTS\n");
         break;
 
     case FSNOTSUPPORTED:
         break;
 
     case FSNOTSUPPORTED:
-        DPRINT("FSNOTSUPPORTED\r");
+        DPRINT("FSNOTSUPPORTED\n");
         break;
 
     case VOLUMEINUSE:
         break;
 
     case VOLUMEINUSE:
-        DPRINT("VOLUMEINUSE\r");
+        DPRINT("VOLUMEINUSE\n");
         break;
 
     case STRUCTUREPROGRESS:
         break;
 
     case STRUCTUREPROGRESS:
-        DPRINT("STRUCTUREPROGRESS\r");
+        DPRINT("STRUCTUREPROGRESS\n");
         break;
 
     case DONEWITHSTRUCTURE:
         break;
 
     case DONEWITHSTRUCTURE:
-        DPRINT("DONEWITHSTRUCTURE\r");
+        DPRINT("DONEWITHSTRUCTURE\n");
         break;
 
     case CLUSTERSIZETOOSMALL:
         break;
 
     case CLUSTERSIZETOOSMALL:
-        DPRINT("CLUSTERSIZETOOSMALL\r");
+        DPRINT("CLUSTERSIZETOOSMALL\n");
         break;
 
     case PROGRESS:
         break;
 
     case PROGRESS:
@@ -236,8 +236,8 @@ ChkdskCallback(
         Status = (PBOOLEAN)Argument;
         if (*Status == TRUE)
         {
         Status = (PBOOLEAN)Argument;
         if (*Status == TRUE)
         {
-            PrintString("Autochk was unable to complete successfully.\n\n");
-            //Error = TRUE;
+            PrintString("Autochk was unable to complete successfully.\r\n\r\n");
+            // Error = TRUE;
         }
         break;
     }
         }
         break;
     }
@@ -294,7 +294,7 @@ CheckVolume(
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("GetFileSystem() failed with status 0x%08lx\n", Status);
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("GetFileSystem() failed with status 0x%08lx\n", Status);
-        PrintString("  Unable to get file system of %S\n", DrivePath);
+        PrintString("  Unable to get file system of %S\r\n", DrivePath);
         return Status;
     }
 
         return Status;
     }
 
@@ -303,7 +303,7 @@ CheckVolume(
     if (Provider == NULL)
     {
         DPRINT1("LoadProvider() failed\n");
     if (Provider == NULL)
     {
         DPRINT1("LoadProvider() failed\n");
-        PrintString("  Unable to verify a %S volume\n", FileSystem);
+        PrintString("  Unable to verify a %S volume\r\n", FileSystem);
         return STATUS_DLL_NOT_FOUND;
     }
 
         return STATUS_DLL_NOT_FOUND;
     }
 
@@ -315,13 +315,13 @@ CheckVolume(
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("LdrGetProcedureAddress() failed with status 0x%08lx\n", Status);
     if (!NT_SUCCESS(Status))
     {
         DPRINT1("LdrGetProcedureAddress() failed with status 0x%08lx\n", Status);
-        PrintString("  Unable to verify a %S volume\n", FileSystem);
+        PrintString("  Unable to verify a %S volume\r\n", FileSystem);
         LdrUnloadDll(Provider);
         return Status;
     }
 
     /* Call provider */
         LdrUnloadDll(Provider);
         return Status;
     }
 
     /* Call provider */
-    //PrintString("  Verifying volume %S\n", DrivePath);
+    // PrintString("  Verifying volume %S\r\n", DrivePath);
     swprintf(NtDrivePath, L"\\??\\");
     wcscat(NtDrivePath, DrivePath);
     NtDrivePath[wcslen(NtDrivePath)-1] = 0;
     swprintf(NtDrivePath, L"\\??\\");
     wcscat(NtDrivePath, DrivePath);
     NtDrivePath[wcslen(NtDrivePath)-1] = 0;
@@ -384,7 +384,7 @@ _main(int argc,
             CheckVolume(DrivePath);
         }
     }
             CheckVolume(DrivePath);
         }
     }
-    //PrintString("  Done\n\n");
+    // PrintString("  Done\r\n\r\n");
     return 0;
 }
 
     return 0;
 }
 
index 9cfd774..aa46164 100644 (file)
@@ -174,7 +174,7 @@ SmpInvokeAutoChk(IN PUNICODE_STRING FileName,
     {
         /* It wasn't, so create an error message to print on the screen */
         sprintf_nt(MessageBuffer,
     {
         /* It wasn't, so create an error message to print on the screen */
         sprintf_nt(MessageBuffer,
-                   "%wZ program not found - skipping AUTOCHECK\n",
+                   "%wZ program not found - skipping AUTOCHECK\r\n",
                    FileName);
         RtlInitAnsiString(&MessageString, MessageBuffer);
         if (NT_SUCCESS(RtlAnsiStringToUnicodeString(&Destination,
                    FileName);
         RtlInitAnsiString(&MessageString, MessageBuffer);
         if (NT_SUCCESS(RtlAnsiStringToUnicodeString(&Destination,