* cygcheck.cc (keyeprint): New optional parameters: show_error and
print_failed.
This commit is contained in:
parent
eaec5f301f
commit
5ccf388ed8
|
@ -1,3 +1,8 @@
|
|||
2004-11-11 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
|
||||
|
||||
* cygcheck.cc (keyeprint): New optional parameters: show_error and
|
||||
print_failed.
|
||||
|
||||
2004-10-31 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
|
||||
|
||||
* cygcheck.cc (get_dword): Fix errormessage.
|
||||
|
|
|
@ -102,9 +102,14 @@ static char **paths = 0;
|
|||
* keyeprint() is used to report failure modes
|
||||
*/
|
||||
static int
|
||||
keyeprint (const char *name)
|
||||
keyeprint (const char *name, bool show_error = true, bool print_failed = true)
|
||||
{
|
||||
fprintf (stderr, "cygcheck: %s failed: %lu\n", name, GetLastError ());
|
||||
if (show_error)
|
||||
fprintf (stderr, "cygcheck: %s%s: %lu\n", name,
|
||||
print_failed ? " failed" : "", GetLastError ());
|
||||
else
|
||||
fprintf (stderr, "cygcheck: %s%s\n", name,
|
||||
print_failed ? " failed" : "");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue