comparison svr-session.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 8fd0ac8c8cab
children b5cc8878d5ec
comparison
equal deleted inserted replaced
593:ea103e4476ce 594:a98a2138364a
136 char fmtbuf[300]; 136 char fmtbuf[300];
137 137
138 if (!sessinitdone) { 138 if (!sessinitdone) {
139 /* before session init */ 139 /* before session init */
140 snprintf(fmtbuf, sizeof(fmtbuf), 140 snprintf(fmtbuf, sizeof(fmtbuf),
141 "premature exit: %s", format); 141 "Premature exit: %s", format);
142 } else if (ses.authstate.authdone) { 142 } else if (ses.authstate.authdone) {
143 /* user has authenticated */ 143 /* user has authenticated */
144 snprintf(fmtbuf, sizeof(fmtbuf), 144 snprintf(fmtbuf, sizeof(fmtbuf),
145 "exit after auth (%s): %s", 145 "Exit (%s): %s",
146 ses.authstate.pw_name, format); 146 ses.authstate.pw_name, format);
147 } else if (ses.authstate.pw_name) { 147 } else if (ses.authstate.pw_name) {
148 /* we have a potential user */ 148 /* we have a potential user */
149 snprintf(fmtbuf, sizeof(fmtbuf), 149 snprintf(fmtbuf, sizeof(fmtbuf),
150 "exit before auth (user '%s', %d fails): %s", 150 "Exit before auth (user '%s', %d fails): %s",
151 ses.authstate.pw_name, ses.authstate.failcount, format); 151 ses.authstate.pw_name, ses.authstate.failcount, format);
152 } else { 152 } else {
153 /* before userauth */ 153 /* before userauth */
154 snprintf(fmtbuf, sizeof(fmtbuf), 154 snprintf(fmtbuf, sizeof(fmtbuf),
155 "exit before auth: %s", format); 155 "Exit before auth: %s", format);
156 } 156 }
157 157
158 _dropbear_log(LOG_INFO, fmtbuf, param); 158 _dropbear_log(LOG_INFO, fmtbuf, param);
159 159
160 #ifdef __uClinux__ 160 #ifdef __uClinux__