mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
More verbose diagnostic, if fails
This commit is contained in:
parent
6acf7a7072
commit
466783eaf8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4022
@ -31,12 +31,12 @@ char *msg; {
|
||||
return write(2, msg, strlen(msg));
|
||||
}
|
||||
|
||||
#define RETERR(e, msg) { (err == NULL ? (printerr(msg), exit(1), 0) \
|
||||
#define RETERR(e, msg) { (err == NULL ? (printerr(msg), exit(1)) \
|
||||
: (*err = e)); return ERR; }
|
||||
|
||||
#else
|
||||
|
||||
#define RETERR(e, msg) { (err == NULL ? (fprintf(stderr, msg), exit(1), 0) \
|
||||
#define RETERR(e, msg) { (err == NULL ? (fprintf(stderr, "setupterm(\"%s\",%d,NULL): %s", term, fd, msg), exit(1)) \
|
||||
: (*err = e)); return ERR; }
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user