better messages

This commit is contained in:
Jeff Hill
2001-05-23 23:05:30 +00:00
parent ac587806a0
commit eb9b01e118
2 changed files with 4 additions and 3 deletions

View File

@@ -2140,7 +2140,7 @@ int camessage ( struct client *client )
if ( msgsize > client->recv.maxstk ) {
casExpandRecvBuffer ( client, msgsize );
if ( msgsize > client->recv.maxstk ) {
const char *pCtx = "rsrv: CA request message too large";
const char *pCtx = "CAS: server unable to load large request message";
send_err ( &msg, ECA_TOLARGE, client, pCtx );
log_header ( pCtx , client, &msg, 0, nmsg );
assert ( client->recv.cnt <= client->recv.maxstk );

View File

@@ -331,11 +331,12 @@ LOCAL void log_one_client (struct client *client, unsigned level)
send_delay = epicsTimeDiffInSeconds(&current,&client->time_at_last_send);
recv_delay = epicsTimeDiffInSeconds(&current,&client->time_at_last_recv);
printf( "%s(%s): User=\"%s\", V%s, Channel Count=%d\n",
printf( "%s(%s): User=\"%s\", V%u.%u, Channel Count=%d\n",
clientHostName,
client->pHostName ? client->pHostName : "",
client->pUserName ? client->pUserName : "",
CA_VERSION_STRING ( client->minor_version_number ),
CA_MAJOR_PROTOCOL_REVISION,
client->minor_version_number,
ellCount(&client->addrq));
if (level>=1) {
printf ("\tTask Id=%p, Protocol=%3s, Socket FD=%d\n", client->tid,