comparison dbutil.c @ 241:c5d3ef11155f

* use own assertions which should get logged properly
author Matt Johnston <matt@ucc.asn.au>
date Mon, 05 Sep 2005 15:16:10 +0000
parents 65585699d980
children 3311f4aa52cb
comparison
equal deleted inserted replaced
238:e923801a7678 241:c5d3ef11155f
108 _dropbear_log(LOG_INFO, fmtbuf, param); 108 _dropbear_log(LOG_INFO, fmtbuf, param);
109 109
110 exit(exitcode); 110 exit(exitcode);
111 } 111 }
112 112
113 void fail_assert(const char* expr, const char* file, int line) {
114 dropbear_exit("failed assertion (%s:%d): `%s'", file, line, expr);
115 }
116
113 static void generic_dropbear_log(int UNUSED(priority), const char* format, 117 static void generic_dropbear_log(int UNUSED(priority), const char* format,
114 va_list param) { 118 va_list param) {
115 119
116 char printbuf[1024]; 120 char printbuf[1024];
117 121