]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cygcheck.cc (get_dword): Fix errormessage.
authorBas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
Sun, 31 Oct 2004 18:46:31 +0000 (18:46 +0000)
committerBas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
Sun, 31 Oct 2004 18:46:31 +0000 (18:46 +0000)
(cygwin_info): Ditto.
(track_down): Ditto.
(check_keys): Ditto.

winsup/utils/ChangeLog
winsup/utils/cygcheck.cc

index cb6ad0d3ba3892f12c3b6a1bca02e9c7a92f12ae..272f14c420ce56fe1cb1dab79976ce33d5d66338 100644 (file)
@@ -1,3 +1,10 @@
+2004-10-31  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
+
+       * cygcheck.cc (get_dword): Fix errormessage.
+       (cygwin_info): Ditto.
+       (track_down): Ditto.
+       (check_keys): Ditto.
+
 2004-10-27  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
 
        * cygcheck.cc (dump_sysinfo): Warn about missing or multiple cygwin1
index b6276745bc25b7cf90929af7528e22bc590c9123..da56e8cd7916b4a2a80b41505c529757ec07fdcd 100644 (file)
@@ -276,7 +276,7 @@ get_dword (HANDLE fh, int offset)
 
   if (SetFilePointer (fh, offset, 0, FILE_BEGIN) == INVALID_SET_FILE_POINTER
       && GetLastError () != NO_ERROR)
-    keyeprint ("get_word: SetFilePointer()");
+    keyeprint ("get_dword: SetFilePointer()");
 
   if (!ReadFile (fh, &rv, 4, (DWORD *) &r, 0))
     keyeprint ("get_dword: Readfile()");
@@ -359,7 +359,7 @@ cygwin_info (HANDLE h)
   buf_start = buf = (char *) calloc (1, size + 1);
   if (buf == NULL)
     {
-      keyeprint ("cygwin_info: malloc()");
+      keyeprint ("cygwin_info: calloc()");
       return;
     }
 
@@ -537,13 +537,13 @@ track_down (char *file, char *suffix, int lvl)
 {
   if (file == NULL)
     {
-      keyeprint ("track_down: malloc()");
+      keyeprint ("track_down: NULL passed for file");
       return;
     }
 
   if (suffix == NULL)
     {
-      keyeprint ("track_down: malloc()");
+      keyeprint ("track_down: NULL passed for suffix");
       return;
     }
 
@@ -1271,7 +1271,7 @@ check_keys ()
                          OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
 
   if (h == INVALID_HANDLE_VALUE || h == NULL)
-    return (keyeprint ("check_key: Opening CONIN$"));
+    return (keyeprint ("check_keys: Opening CONIN$"));
 
   DWORD mode;
 
@@ -1281,7 +1281,7 @@ check_keys ()
     {
       mode &= ~ENABLE_PROCESSED_INPUT;
       if (!SetConsoleMode (h, mode))
-       keyeprint ("check_keys: GetConsoleMode()");
+       keyeprint ("check_keys: SetConsoleMode()");
     }
 
   fputs ("\nThis key check works only in a console window,", stderr);
@@ -1300,7 +1300,7 @@ check_keys ()
     {
       prev_in = in;
       if (!ReadConsoleInput (h, &in, 1, &mode))
-       keyeprint ("ReadConsoleInput");
+       keyeprint ("check_keys: ReadConsoleInput()");
 
       if (!memcmp (&in, &prev_in, sizeof in))
        continue;
This page took 0.039139 seconds and 5 git commands to generate.