/titanic_50/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema_test.c | 100 char msgbuf[100]; in error_summary() local 102 (void) sprintf(msgbuf, err_sum, total_errors); in error_summary() 103 mtest_message(handle, msgbuf); in error_summary() 111 char msgbuf[100]; in error_print() local 114 (void) sprintf(msgbuf, pg_header_msg, PAGE_SIZE(handle) * pageno); in error_print() 115 mtest_message(handle, msgbuf); in error_print() 124 (void) sprintf(msgbuf, mem_err_msg, offset, in error_print() 126 mtest_message(handle, msgbuf); in error_print() 143 char msgbuf[100]; in memory_test_normal() local 166 (void) sprintf(msgbuf, wr_err_msg, pageno); in memory_test_normal() [all …]
|
/titanic_50/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 …]
|
/titanic_50/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 …]
|
/titanic_50/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()
|
/titanic_50/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_vf.c | 180 u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN]; in ixgbe_reset_hw_vf() local 181 u8 *addr = (u8 *)(&msgbuf[1]); in ixgbe_reset_hw_vf() 213 msgbuf[0] = IXGBE_VF_RESET; in ixgbe_reset_hw_vf() 214 mbx->ops.write_posted(hw, msgbuf, 1, 0); in ixgbe_reset_hw_vf() 223 ret_val = mbx->ops.read_posted(hw, msgbuf, in ixgbe_reset_hw_vf() 228 if (msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_ACK) && in ixgbe_reset_hw_vf() 229 msgbuf[0] != (IXGBE_VF_RESET | IXGBE_VT_MSGTYPE_NACK)) in ixgbe_reset_hw_vf() 233 hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD]; in ixgbe_reset_hw_vf() 347 u32 msgbuf[3]; in ixgbe_set_rar_vf() local 348 u8 *msg_addr = (u8 *)(&msgbuf[1]); in ixgbe_set_rar_vf() [all …]
|
/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/lp/lib/msgs/ |
H A D | streamio.c | 104 int read3_2 ( MESG * md, char *msgbuf, int size ) in read3_2() argument 113 switch (read_fifo(md->readfd, msgbuf, size)) in read3_2() 132 if ((type = stoh(msgbuf + HEAD_TYPE)) < 0 || LAST_MESSAGE < type) in read3_2() 140 (void)memcpy (AuthCode, msgbuf + HEAD_AUTHCODE, HEAD_AUTHCODE_LEN); in read3_2() 148 size = stoh(msgbuf + HEAD_SIZE) - EXCESS_3_2_LEN; in read3_2() 149 memmove(msgbuf, msgbuf + HEAD_SIZE, size); in read3_2() 150 (void) htos(msgbuf + MESG_SIZE, size); in read3_2() 154 int write3_2 ( MESG * md, char * msgbuf, int size ) in write3_2() argument 160 (void) memmove(tmpbuf + HEAD_SIZE, msgbuf, size); in write3_2()
|
H A D | mwrite.c | 43 static int _mwrite ( MESG * md , char * msgbuf , int ); 87 int mwrite ( MESG * md, char * msgbuf ) in mwrite() argument 99 if (msgbuf == NULL) in mwrite() 105 size = stoh(msgbuf); in mwrite() 107 if (LAST_MESSAGE < stoh(msgbuf + MESG_TYPE)) in mwrite() 115 if (_mwrite(md, msgbuf, size) == 0) in mwrite() 133 (void) memcpy(p->dat->buf, msgbuf, size); in mwrite() 163 int _mwrite ( MESG * md, char * msgbuf , int size ) in _mwrite() argument 182 dat.buf = msgbuf; in _mwrite() 193 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);
|
/titanic_50/usr/src/cmd/listen/ |
H A D | nlps_serv.c | 94 char msgbuf[BUFSIZ]; variable 111 sprintf(msgbuf, "%s/%s", Altbasedir, LOGNAME); in main() 112 if (!(Logfp = fopen(msgbuf, "a+"))) { in main() 117 sprintf(msgbuf, "%s/%s", Altbasedir, PDEBUGNAME); in main() 118 if (!(Debugfp = fopen(msgbuf, "a"))) { in main() 505 sprintf(msgbuf,"NLPS (%s) passfd: %s", 508 nls_reply(NLSSTART, msgbuf); 509 logmessage(msgbuf); 524 sprintf(msgbuf,"%s/%s",Basedir,dbp->dbf_svc_code); 526 if ((i = doconfig(0, msgbuf, NOASSIGN)) != 0) { [all …]
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | uuxqt.c | 843 msgbuf[BUFSIZ]; local 1097 (void) snprintf(msgbuf, sizeof (msgbuf), 1103 (void) snprintf(msgbuf, sizeof (msgbuf), 1113 incmd, msgbuf, ""); 1115 uucpst(Rmtname, _Sfile, "", incmd, msgbuf); 1150 (void) strcpy(msgbuf, "exited normally"); 1156 (void) snprintf(msgbuf, sizeof (msgbuf), 1160 (void) snprintf(msgbuf, sizeof (msgbuf), 1163 DEBUG(5, "%s\n", msgbuf); 1164 (void) snprintf(lbuf, sizeof (lbuf), "%s - %s", incmd, msgbuf); [all …]
|
/titanic_50/usr/src/cmd/lp/cmd/ |
H A D | lpshut.c | 63 char msgbuf[MSGMAX]; in main() local 92 (void)putmessage (msgbuf, S_SHUTDOWN, 0); in main() 94 (void)putmessage (msgbuf, S_SHUTDOWN, 1); in main() 96 if (msend(msgbuf) == -1) { in main() 100 if (mrecv(msgbuf, sizeof(msgbuf)) == -1) { in main() 105 mtype = getmessage(msgbuf, R_SHUTDOWN, &status); in main()
|
/titanic_50/usr/src/lib/libsip/common/ |
H A D | sip_reass.c | 134 char *msgbuf = NULL; in sip_get_tcp_msg() local 140 msgbuf = (char *)malloc(*msglen + 1); in sip_get_tcp_msg() 141 if (msgbuf == NULL) in sip_get_tcp_msg() 143 (void) strncpy(msgbuf, msg, *msglen); in sip_get_tcp_msg() 144 msgbuf[*msglen] = '\0'; in sip_get_tcp_msg() 145 msg = msgbuf; in sip_get_tcp_msg() 159 if (msgbuf != NULL) in sip_get_tcp_msg() 160 free(msgbuf); in sip_get_tcp_msg() 198 if (msgbuf != NULL) in sip_get_tcp_msg() 199 free(msgbuf); in sip_get_tcp_msg()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_slp.c | 48 static char *msgbuf; /* message buffer for summary mode */ variable 309 strncat(msgbuf, p, (retlength > MAXSUMLEN ? MAXSUMLEN : retlength)); \ 694 msgbuf = msgbuf_real; in interpret_slp_v2() 729 "%s [partial TCP message]", msgbuf); in interpret_slp_v2() 731 sprintf(get_sum_line(), "%s [OVERFLOW]", msgbuf); in interpret_slp_v2() 733 sprintf(get_sum_line(), "%s [CORRUPTED MESSAGE]", msgbuf); in interpret_slp_v2() 737 sprintf(get_sum_line(), "%s +%d", msgbuf, msglength); in interpret_slp_v2() 740 sprintf(get_sum_line(), "%s", msgbuf); in interpret_slp_v2() 781 sprintf(msgbuf, "SLP V2 %s [%d%s] ", in v2_header() 786 msgend = msgbuf + strlen(msgbuf); in v2_header() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | msgsys.c | 58 msgrcv(int msqid, struct msgbuf *msgp, int msgsz, long msgtyp, int msgflg) in msgrcv() 65 msgsnd(int msqid, struct msgbuf *msgp, int msgsz, int msgflg) in msgsnd() 80 struct msgbuf *msgp; in msgsys() 99 msgp = va_arg(ap, struct msgbuf *); in msgsys() 107 msgp = va_arg(ap, struct msgbuf *); in msgsys()
|
/titanic_50/usr/src/cmd/fmtmsg/ |
H A D | main.c | 215 static char msgbuf[256]; /* Buf for messages */ variable 678 (void) snprintf(msgbuf, sizeof (msgbuf), in main() 680 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, in main() 717 (void) snprintf(msgbuf, sizeof (msgbuf), in main() 719 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, in main() 782 (void) snprintf(msgbuf, sizeof (msgbuf), in main() 784 (void) fmtmsg(CLASS, labelbuf, MM_ERROR, msgbuf, in main()
|
/titanic_50/usr/src/cmd/lp/model/ |
H A D | lp.tell.c | 137 msgbuf[MSGMAX], in main() local 332 (void)putmessage ( msgbuf, S_PAPER_CHANGED, printer, trayNum, in main() 342 (void)putmessage (msgbuf,S_SEND_FAULT,printer,key,bufPtr); in main() 355 (void)putmessage( msgbuf,S_CLEAR_FAULT,printer,clearKey, in main() 409 (void)putmessage(msgbuf, S_CLEAR_FAULT, printer, in main() 414 (void)putmessage(msgbuf, S_SEND_FAULT, printer, in main() 420 if (msend(msgbuf) == -1) in main() 422 if (mrecv(msgbuf, sizeof(msgbuf)) == -1) in main() 424 mtype = getmessage(msgbuf, mesgRetType, &status); in main()
|
/titanic_50/usr/src/cmd/drd/ |
H A D | drd_log.c | 98 char msgbuf[DRD_MAX_MSG_LEN]; in drd_log_msg() local 104 (void) vsnprintf(msgbuf, DRD_MAX_MSG_LEN, fmt, vap); in drd_log_msg() 111 (void) fprintf(stderr, "%s%s%s\n", timebuf, log_prio_str[prio], msgbuf); in drd_log_msg() 114 syslog(prio, msgbuf); in drd_log_msg()
|
/titanic_50/usr/src/cmd/lp/cmd/lpadmin/ |
H A D | send_message.c | 66 char msgbuf[MSGMAX]; local 78 (void)_putmessage (msgbuf, type, ap); 82 if (msend(msgbuf) == -1) {
|
/titanic_50/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()
|
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | log.c | 370 char msgbuf[MSGBUFSIZ]; in do_log() local 432 vsnprintf(msgbuf, sizeof(msgbuf), fmtbuf, args); in do_log() 434 vsnprintf(msgbuf, sizeof(msgbuf), in do_log() 439 fprintf(stderr, "%s\r\n", msgbuf); in do_log() 442 syslog(pri, "%.500s", msgbuf); in do_log()
|