* cygcheck.cc (dump_sysinfo): Redefine output format slightly.

This commit is contained in:
Corinna Vinschen 2001-11-12 21:55:39 +00:00
parent e1af9739e0
commit d1ba802d67
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-11-12 Corinna Vinschen <corinna@vinschen.de>
* cygcheck.cc (dump_sysinfo): Redefine output format slightly.
2001-11-12 Christopher Faylor <cgf@redhat.com>
* cygcheck.cc (main): Slight formatting tweak.

View File

@ -847,9 +847,12 @@ dump_sysinfo ()
osname = (char *) "??";
break;
}
printf ("Windows %s Ver %d.%d build %d %s\n\n", osname,
(int) osversion.dwMajorVersion, (int) osversion.dwMinorVersion,
(int) osversion.dwBuildNumber, osversion.szCSDVersion);
printf ("Windows %s Ver %lu.%lu Build %lu %s\n\n", osname,
osversion.dwMajorVersion, osversion.dwMinorVersion,
osversion.dwPlatformId == VER_PLATFORM_WIN32_NT ?
osversion.dwBuildNumber : (osversion.dwBuildNumber & 0xffff),
osversion.dwPlatformId == VER_PLATFORM_WIN32_NT ?
osversion.szCSDVersion : "");
printf ("Path:");
char *s = getenv ("PATH"), *e;