| /illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
| H A D | mema_test.c | 98 char msgbuf[100]; in error_summary() local 100 (void) sprintf(msgbuf, err_sum, total_errors); in error_summary() 101 mtest_message(handle, msgbuf); in error_summary() 109 char msgbuf[100]; in error_print() local 112 (void) sprintf(msgbuf, pg_header_msg, PAGE_SIZE(handle) * pageno); in error_print() 113 mtest_message(handle, msgbuf); in error_print() 122 (void) sprintf(msgbuf, mem_err_msg, offset, in error_print() 124 mtest_message(handle, msgbuf); in error_print() 141 char msgbuf[100]; in memory_test_normal() local 164 (void) sprintf(msgbuf, wr_err_msg, pageno); in memory_test_normal() [all …]
|
| /illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
| H A D | ixgbe_vf.c | 182 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; in ixgbe_reset_hw_vf() local 183 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_reset_hw_vf() 216 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_reset_hw_vf() 217 ixgbe_write_mbx(hw, msgbuf, 1, 0); in ixgbe_reset_hw_vf() 226 ret_val = ixgbe_poll_mbx(hw, msgbuf, in ixgbe_reset_hw_vf() 231 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_SUCCESS) && in ixgbe_reset_hw_vf() 232 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_FAILURE)) in ixgbe_reset_hw_vf() 235 if (msgbuf[0] == (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_SUCCESS)) in ixgbe_reset_hw_vf() 238 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbe_reset_hw_vf() 351 u32 msgbuf[3]; in ixgbe_set_rar_vf() local [all …]
|
| /illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
| H A D | eib_log.c | 86 char msgbuf[EIB_MAX_LINE]; in eib_log() local 92 msglen = snprintf(msgbuf, EIB_MAX_LINE, "%llx: %s", in eib_log() 95 msglen = snprintf(msgbuf, EIB_MAX_LINE, "%s", msg); in eib_log() 120 bcopy(msgbuf, eib_debug_buf+off, msglen); /* no lock needed */ in eib_log() 129 char msgbuf[EIB_MAX_LINE]; in eib_dprintf_verbose() local 138 msglen = vsnprintf(msgbuf, EIB_MAX_LINE, newfmt, ap); in eib_dprintf_verbose() 142 eib_log(msgbuf); in eib_dprintf_verbose() 149 char msgbuf[EIB_MAX_LINE]; in eib_dprintf_pkt() local 159 (void) snprintf(msgbuf, EIB_MAX_LINE, in eib_dprintf_pkt() 165 eib_log(msgbuf); in eib_dprintf_pkt() [all …]
|
| H A D | enx_log.c | 83 char msgbuf[ENX_MAX_LINE]; in eibnx_log() local 89 msglen = snprintf(msgbuf, ENX_MAX_LINE, "%llx: %s", in eibnx_log() 92 msglen = snprintf(msgbuf, ENX_MAX_LINE, "%s", msg); in eibnx_log() 118 bcopy(msgbuf, enx_debug_buf+off, msglen); /* no lock needed */ in eibnx_log() 127 char msgbuf[ENX_MAX_LINE]; in eibnx_dprintf_verbose() local 136 msglen = vsnprintf(msgbuf, ENX_MAX_LINE, newfmt, ap); in eibnx_dprintf_verbose() 140 eibnx_log(msgbuf); in eibnx_dprintf_verbose() 149 char msgbuf[ENX_MAX_LINE]; in eibnx_dprintf_args() local 158 msglen = vsnprintf(msgbuf, ENX_MAX_LINE, newfmt, ap); in eibnx_dprintf_args() 162 eibnx_log(msgbuf); in eibnx_dprintf_args() [all …]
|
| /illumos-gate/usr/src/uts/common/io/e1000api/ |
| H A D | e1000_vf.c | 263 u32 ctrl, msgbuf[3]; in e1000_reset_hw_vf() local 264 u8 *addr = (u8 *)(&msgbuf[1]); in e1000_reset_hw_vf() 282 msgbuf[0] = E1000_VF_RESET; in e1000_reset_hw_vf() 283 mbx->ops.write_posted(hw, msgbuf, 1, 0); in e1000_reset_hw_vf() 288 ret_val = mbx->ops.read_posted(hw, msgbuf, 3, 0); in e1000_reset_hw_vf() 290 if (msgbuf[0] == (E1000_VF_RESET | in e1000_reset_hw_vf() 327 u32 msgbuf[3]; in e1000_rar_set_vf() local 328 u8 *msg_addr = (u8 *)(&msgbuf[1]); in e1000_rar_set_vf() 331 memset(msgbuf, 0, 12); in e1000_rar_set_vf() 332 msgbuf[0] = E1000_VF_SET_MAC_ADDR; in e1000_rar_set_vf() [all …]
|
| /illumos-gate/usr/src/lib/libcryptoutil/common/ |
| H A D | debug.c | 46 char msgbuf[BUFSIZ]; in cryptodebug() local 53 (void) vsnprintf(msgbuf, sizeof (msgbuf), fmt, args); in cryptodebug() 57 (void) vsnprintf(msgbuf, sizeof (msgbuf), fmtbuf, args); in cryptodebug() 61 syslog(LOG_DEBUG, msgbuf); in cryptodebug() 63 (void) fprintf(stderr, "%s\n", msgbuf); in cryptodebug() 87 char msgbuf[BUFSIZ]; in cryptoerror() local 95 (void) vsnprintf(msgbuf, sizeof (msgbuf), fmt, args); in cryptoerror() 99 (void) vsnprintf(msgbuf, sizeof (msgbuf), fmtbuf, args); in cryptoerror() 103 (void) fprintf(stderr, "%s\n", msgbuf); in cryptoerror() 105 syslog(priority, msgbuf); in cryptoerror()
|
| /illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
| H A D | depchk.c | 70 char msgbuf[4096]; in depchkReportErrors() local 131 (void) snprintf(msgbuf, sizeof (msgbuf), in depchkReportErrors() 138 (void) snprintf(msgbuf, sizeof (msgbuf), in depchkReportErrors() 147 err = (a_dck[i].depcklFunc)(msgbuf, in depchkReportErrors() 151 packageName, msgbuf); in depchkReportErrors() 163 msgbuf); in depchkReportErrors() 164 ptext(stderr, "\\n%s", msgbuf); in depchkReportErrors() 299 char msgbuf[4096]; in collectError() local 304 (void) snprintf(msgbuf, sizeof (msgbuf), in collectError() 310 (void) snprintf(msgbuf, sizeof (msgbuf), in collectError() [all …]
|
| /illumos-gate/usr/src/cmd/lp/lib/msgs/ |
| H A D | streamio.c | 100 int read3_2 ( MESG * md, char *msgbuf, int size ) in read3_2() argument 109 switch (read_fifo(md->readfd, msgbuf, size)) in read3_2() 128 if ((type = stoh(msgbuf + HEAD_TYPE)) < 0 || LAST_MESSAGE < type) in read3_2() 136 (void)memcpy (AuthCode, msgbuf + HEAD_AUTHCODE, HEAD_AUTHCODE_LEN); in read3_2() 144 size = stoh(msgbuf + HEAD_SIZE) - EXCESS_3_2_LEN; in read3_2() 145 memmove(msgbuf, msgbuf + HEAD_SIZE, size); in read3_2() 146 (void) htos(msgbuf + MESG_SIZE, size); in read3_2() 150 int write3_2 ( MESG * md, char * msgbuf, int size ) in write3_2() argument 156 (void) memmove(tmpbuf + HEAD_SIZE, msgbuf, size); in write3_2()
|
| H A D | mwrite.c | 41 static int _mwrite ( MESG * md , char * msgbuf , int ); 85 int mwrite ( MESG * md, char * msgbuf ) in mwrite() argument 97 if (msgbuf == NULL) in mwrite() 103 size = stoh(msgbuf); in mwrite() 105 if (LAST_MESSAGE < stoh(msgbuf + MESG_TYPE)) in mwrite() 113 if (_mwrite(md, msgbuf, size) == 0) in mwrite() 131 (void) memcpy(p->dat->buf, msgbuf, size); in mwrite() 161 int _mwrite ( MESG * md, char * msgbuf , int size ) in _mwrite() argument 180 dat.buf = msgbuf; in _mwrite() 191 switch (write3_2(md, msgbuf, size)) in _mwrite()
|
| H A D | mread.c | 58 int mread ( MESG * md, char * msgbuf, int size ) in mread() argument 60 int mread ( md, msgbuf, size ) in mread() 62 char *msgbuf; 71 if (md == NULL || msgbuf == NULL) 87 dat.buf = msgbuf; 118 if (read3_2(md, msgbuf, size) < 0) 123 return((int)msize(msgbuf));
|
| H A D | mrecv.c | 40 mrecv (msgbuf, size) in mrecv() argument 41 char *msgbuf; in mrecv() 50 n = mread(lp_Md, msgbuf, size); 62 return(getmessage(msgbuf, I_GET_TYPE));
|
| H A D | msend.c | 41 int msend ( char * msgbuf ) in msend() argument 43 int msend (msgbuf) in msend() 44 char *msgbuf; in msend() 51 if ((rval = mwrite(lp_Md, msgbuf)) < 0)
|
| H A D | mdisconnect.c | 113 char *msgbuf = 0; local 121 if ((msgbuf = (char *)Malloc((unsigned)size))) 123 (void)putmessage (msgbuf, S_GOODBYE); 124 (void)msend (msgbuf); 125 Free (msgbuf);
|
| /illumos-gate/usr/src/cmd/listen/ |
| H A D | nlps_serv.c | 92 char msgbuf[BUFSIZ]; variable 109 sprintf(msgbuf, "%s/%s", Altbasedir, LOGNAME); in main() 110 if (!(Logfp = fopen(msgbuf, "a+"))) { in main() 115 sprintf(msgbuf, "%s/%s", Altbasedir, PDEBUGNAME); in main() 116 if (!(Debugfp = fopen(msgbuf, "a"))) { in main() 503 sprintf(msgbuf,"NLPS (%s) passfd: %s", 506 nls_reply(NLSSTART, msgbuf); 507 logmessage(msgbuf); 522 sprintf(msgbuf,"%s/%s",Basedir,dbp->dbf_svc_code); 524 if ((i = doconfig(0, msgbuf, NOASSIGN)) != 0) { [all …]
|
| /illumos-gate/usr/src/cmd/bnu/ |
| H A D | uuxqt.c | 841 msgbuf[BUFSIZ]; local 1095 (void) snprintf(msgbuf, sizeof (msgbuf), 1101 (void) snprintf(msgbuf, sizeof (msgbuf), 1111 incmd, msgbuf, ""); 1113 uucpst(Rmtname, _Sfile, "", incmd, msgbuf); 1148 (void) strcpy(msgbuf, "exited normally"); 1154 (void) snprintf(msgbuf, sizeof (msgbuf), 1158 (void) snprintf(msgbuf, sizeof (msgbuf), 1161 DEBUG(5, "%s\n", msgbuf); 1162 (void) snprintf(lbuf, sizeof (lbuf), "%s - %s", incmd, msgbuf); [all …]
|
| /illumos-gate/usr/src/test/crypto-tests/tests/digest/ |
| H A D | parser_runner.c | 150 read_msg(parser_ctx_t *ctx, uchar_t *msgbuf, size_t msglen) in read_msg() argument 164 if (msgbuf == NULL) { in read_msg() 171 msgbuf, msglen); in read_msg() 211 uchar_t *msgbuf = NULL; in parser_read() local 232 msgbuf = calloc(msglen, 1); in parser_read() 233 if (msgbuf == NULL) { in parser_read() 239 ret = read_msg(ctx, msgbuf, msglen); in parser_read() 245 free(msgbuf); in parser_read() 246 msgbuf = NULL; in parser_read() 264 free(msgbuf); in parser_read() [all …]
|
| /illumos-gate/usr/src/cmd/lp/cmd/ |
| H A D | lpshut.c | 61 char msgbuf[MSGMAX]; in main() local 90 (void)putmessage (msgbuf, S_SHUTDOWN, 0); in main() 92 (void)putmessage (msgbuf, S_SHUTDOWN, 1); in main() 94 if (msend(msgbuf) == -1) { in main() 98 if (mrecv(msgbuf, sizeof(msgbuf)) == -1) { in main() 103 mtype = getmessage(msgbuf, R_SHUTDOWN, &status); in main()
|
| /illumos-gate/usr/src/lib/libsip/common/ |
| H A D | sip_reass.c | 132 char *msgbuf = NULL; in sip_get_tcp_msg() local 138 msgbuf = (char *)malloc(*msglen + 1); in sip_get_tcp_msg() 139 if (msgbuf == NULL) in sip_get_tcp_msg() 141 (void) strncpy(msgbuf, msg, *msglen); in sip_get_tcp_msg() 142 msgbuf[*msglen] = '\0'; in sip_get_tcp_msg() 143 msg = msgbuf; in sip_get_tcp_msg() 157 if (msgbuf != NULL) in sip_get_tcp_msg() 158 free(msgbuf); in sip_get_tcp_msg() 196 if (msgbuf != NULL) in sip_get_tcp_msg() 197 free(msgbuf); in sip_get_tcp_msg()
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
| H A D | snoop_slp.c | 46 static char *msgbuf; /* message buffer for summary mode */ variable 308 strncat(msgbuf, p, (retlength > MAXSUMLEN ? MAXSUMLEN : retlength)); \ 693 msgbuf = msgbuf_real; in interpret_slp_v2() 728 "%s [partial TCP message]", msgbuf); in interpret_slp_v2() 730 sprintf(get_sum_line(), "%s [OVERFLOW]", msgbuf); in interpret_slp_v2() 732 sprintf(get_sum_line(), "%s [CORRUPTED MESSAGE]", msgbuf); in interpret_slp_v2() 736 sprintf(get_sum_line(), "%s +%d", msgbuf, msglength); in interpret_slp_v2() 739 sprintf(get_sum_line(), "%s", msgbuf); in interpret_slp_v2() 780 sprintf(msgbuf, "SLP V2 %s [%d%s] ", in v2_header() 785 msgend = msgbuf + strlen(msgbuf); in v2_header() [all …]
|
| /illumos-gate/usr/src/cmd/fmtmsg/ |
| H A D | main.c | 216 static char msgbuf[256]; /* Buf for messages */ variable 679 (void) snprintf(msgbuf, sizeof (msgbuf), in main() 681 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, in main() 718 (void) snprintf(msgbuf, sizeof (msgbuf), in main() 720 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, in main() 783 (void) snprintf(msgbuf, sizeof (msgbuf), in main() 785 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, in main()
|
| /illumos-gate/usr/src/cmd/lp/model/ |
| H A D | lp.tell.c | 135 msgbuf[MSGMAX], in main() local 330 (void)putmessage ( msgbuf, S_PAPER_CHANGED, printer, trayNum, in main() 340 (void)putmessage (msgbuf,S_SEND_FAULT,printer,key,bufPtr); in main() 353 (void)putmessage( msgbuf,S_CLEAR_FAULT,printer,clearKey, in main() 407 (void)putmessage(msgbuf, S_CLEAR_FAULT, printer, in main() 412 (void)putmessage(msgbuf, S_SEND_FAULT, printer, in main() 418 if (msend(msgbuf) == -1) in main() 420 if (mrecv(msgbuf, sizeof(msgbuf)) == -1) in main() 422 mtype = getmessage(msgbuf, mesgRetType, &status); in main()
|
| /illumos-gate/usr/src/test/util-tests/tests/libcustr/ |
| H A D | custr_trunc.c | 31 char msgbuf[256]; in expect() local 33 (void) snprintf(msgbuf, sizeof (msgbuf), "%s == '%s' ('%s' == '%s')", in expect() 36 (void) assfail(msgbuf, file, line); in expect()
|
| H A D | custr_remove.c | 30 char msgbuf[256]; in expect() local 32 (void) snprintf(msgbuf, sizeof (msgbuf), "%s == '%s' ('%s' == '%s')", in expect() 35 (void) assfail(msgbuf, file, line); in expect()
|
| /illumos-gate/usr/src/cmd/drd/ |
| H A D | drd_log.c | 96 char msgbuf[DRD_MAX_MSG_LEN]; in drd_log_msg() local 102 (void) vsnprintf(msgbuf, DRD_MAX_MSG_LEN, fmt, vap); in drd_log_msg() 109 (void) fprintf(stderr, "%s%s%s\n", timebuf, log_prio_str[prio], msgbuf); in drd_log_msg() 112 syslog(prio, msgbuf); in drd_log_msg()
|
| /illumos-gate/usr/src/cmd/ldmad/ |
| H A D | ldma_log.c | 98 char msgbuf[LDMA_MAX_MSG_LEN]; in ldma_log_msg() local 105 (void) vsnprintf(msgbuf, LDMA_MAX_MSG_LEN, fmt, vap); in ldma_log_msg() 113 log_prio_str[prio], msgbuf); in ldma_log_msg() 117 syslog(prio, msgbuf); in ldma_log_msg()
|