comparison dbutil.c @ 594:a98a2138364a

Improve capitalisation for all logged strings
author Matt Johnston <matt@ucc.asn.au>
date Wed, 23 Feb 2011 15:50:30 +0000
parents 005530560594
children 00eca37e47e8
comparison
equal deleted inserted replaced
593:ea103e4476ce 594:a98a2138364a
109 109
110 exit(exitcode); 110 exit(exitcode);
111 } 111 }
112 112
113 void fail_assert(const char* expr, const char* file, int line) { 113 void fail_assert(const char* expr, const char* file, int line) {
114 dropbear_exit("failed assertion (%s:%d): `%s'", file, line, expr); 114 dropbear_exit("Failed assertion (%s:%d): `%s'", file, line, expr);
115 } 115 }
116 116
117 static void generic_dropbear_log(int UNUSED(priority), const char* format, 117 static void generic_dropbear_log(int UNUSED(priority), const char* format,
118 va_list param) { 118 va_list param) {
119 119
453 453
454 if ((dup2(infds[FDIN], STDIN_FILENO) < 0) || 454 if ((dup2(infds[FDIN], STDIN_FILENO) < 0) ||
455 (dup2(outfds[FDOUT], STDOUT_FILENO) < 0) || 455 (dup2(outfds[FDOUT], STDOUT_FILENO) < 0) ||
456 (ret_errfd && dup2(errfds[FDOUT], STDERR_FILENO) < 0)) { 456 (ret_errfd && dup2(errfds[FDOUT], STDERR_FILENO) < 0)) {
457 TRACE(("leave noptycommand: error redirecting FDs")) 457 TRACE(("leave noptycommand: error redirecting FDs"))
458 dropbear_exit("child dup2() failure"); 458 dropbear_exit("Child dup2() failure");
459 } 459 }
460 460
461 close(infds[FDOUT]); 461 close(infds[FDOUT]);
462 close(infds[FDIN]); 462 close(infds[FDIN]);
463 close(outfds[FDIN]); 463 close(outfds[FDIN]);