comparison contrib/chg/util.h @ 28788:57a78a64de44

chg: add util function abortmsgerrno to print error with errno It's common to abortmsg with the errno information. Let's make a utility function for it.
author Jun Wu <quark@fb.com>
date Tue, 05 Apr 2016 17:25:39 +0100
parents ea86cdcd9b50
children ddef14468952
comparison
equal deleted inserted replaced
28787:ea86cdcd9b50 28788:57a78a64de44
15 #else 15 #else
16 #define PRINTF_FORMAT_ 16 #define PRINTF_FORMAT_
17 #endif 17 #endif
18 18
19 void abortmsg(const char *fmt, ...) PRINTF_FORMAT_; 19 void abortmsg(const char *fmt, ...) PRINTF_FORMAT_;
20 void abortmsgerrno(const char *fmt, ...) PRINTF_FORMAT_;
20 21
21 void enablecolor(void); 22 void enablecolor(void);
22 void enabledebugmsg(void); 23 void enabledebugmsg(void);
23 void debugmsg(const char *fmt, ...) PRINTF_FORMAT_; 24 void debugmsg(const char *fmt, ...) PRINTF_FORMAT_;
24 25