Lines Matching refs:errmsg
178 char *errmsg; in ses_verror() local
180 errmsg = alloca(sizeof (_ses_errmsg)); in ses_verror()
181 (void) vsnprintf(errmsg, sizeof (_ses_errmsg), fmt, ap); in ses_verror()
184 n = strlen(errmsg); in ses_verror()
186 while (n != 0 && errmsg[n - 1] == '\n') in ses_verror()
187 errmsg[--n] = '\0'; in ses_verror()
189 bcopy(errmsg, _ses_errmsg, sizeof (_ses_errmsg)); in ses_verror()
201 char *errmsg; in ses_vnverror() local
203 errmsg = alloca(sizeof (_ses_errmsg)); in ses_vnverror()
204 (void) vsnprintf(errmsg, sizeof (_ses_errmsg), fmt, ap); in ses_vnverror()
207 n = strlen(errmsg); in ses_vnverror()
209 while (n != 0 && errmsg[n - 1] == '\n') in ses_vnverror()
210 errmsg[--n] = '\0'; in ses_vnverror()
212 (void) snprintf(errmsg + n, sizeof (_ses_errmsg) - n, ": %s", in ses_vnverror()
215 bcopy(errmsg, _ses_errmsg, sizeof (_ses_errmsg)); in ses_vnverror()
251 char errmsg[LIBSES_ERRMSGLEN]; in ses_libscsi_error() local
271 (void) vsnprintf(errmsg, sizeof (errmsg), fmt, ap); in ses_libscsi_error()
273 ses_panic("%s: unexpected libscsi error %s: %s", errmsg, in ses_libscsi_error()
285 (void) vsnprintf(errmsg, sizeof (errmsg), fmt, ap); in ses_libscsi_error()
288 return (ses_error(e, "%s: %s", errmsg, libscsi_errmsg(shp))); in ses_libscsi_error()
295 char errmsg[LIBSES_ERRMSGLEN]; in ses_scsi_error() local
300 (void) vsnprintf(errmsg, sizeof (errmsg), fmt, args); in ses_scsi_error()
305 "%s: SCSI status %d (no sense data available)", errmsg, in ses_scsi_error()
312 "(%s) additional sense code 0x%llx/0x%llx (%s)", errmsg, in ses_scsi_error()