ses_subr.c (275c9da86e89f8abf71135cf63d9fc23671b2e60) | ses_subr.c (44bf619d328827ce5eca6833fcd5c69f1592e578) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 10 unchanged lines hidden (view full) --- 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 10 unchanged lines hidden (view full) --- 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 |
27#pragma ident "%Z%%M% %I% %E% SMI" | 27/* 28 * Copyright 2019 Joyent, Inc. 29 */ |
28 29#include <scsi/libses.h> 30#include "ses_impl.h" 31 32__thread ses_errno_t _ses_errno; 33__thread char _ses_errmsg[1024]; 34__thread char _ses_nverr_member[256]; 35 --- 13 unchanged lines hidden (view full) --- 49 if (strchr(fmt, '\n') == NULL) { 50 len = strlen(msg); 51 (void) snprintf(msg + len, sizeof (msg) - len, ": %s\n", 52 strerror(oserr)); 53 } 54 55 (void) write(STDERR_FILENO, msg, strlen(msg)); 56 | 30 31#include <scsi/libses.h> 32#include "ses_impl.h" 33 34__thread ses_errno_t _ses_errno; 35__thread char _ses_errmsg[1024]; 36__thread char _ses_nverr_member[256]; 37 --- 13 unchanged lines hidden (view full) --- 51 if (strchr(fmt, '\n') == NULL) { 52 len = strlen(msg); 53 (void) snprintf(msg + len, sizeof (msg) - len, ": %s\n", 54 strerror(oserr)); 55 } 56 57 (void) write(STDERR_FILENO, msg, strlen(msg)); 58 |
57abort: | |
58 abort(); | 59 abort(); |
59 _exit(1); | |
60} 61 62/*PRINTFLIKE1*/ 63void 64ses_panic(const char *fmt, ...) 65{ 66 va_list ap; 67 --- 309 unchanged lines hidden --- | 60} 61 62/*PRINTFLIKE1*/ 63void 64ses_panic(const char *fmt, ...) 65{ 66 va_list ap; 67 --- 309 unchanged lines hidden --- |