Changeset 26:b4684b76c6ab in freeDiameter for freeDiameter/cnxctx.c
- Timestamp:
- Oct 26, 2009, 4:44:16 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/cnxctx.c
r25 r26 504 504 || (length > DIAMETER_MSG_SIZE_MAX)) { /* to avoid too big mallocs */ 505 505 /* The message is suspect */ 506 TRACE_DEBUG(INFO, "Received suspect header [ver: %d, size: % g], assume disconnection", (int)header[0], length);506 TRACE_DEBUG(INFO, "Received suspect header [ver: %d, size: %z], assume disconnection", (int)header[0], length); 507 507 goto error; /* Stop the thread, the recipient of the event will cleanup */ 508 508 } … … 630 630 || (length > DIAMETER_MSG_SIZE_MAX)) { /* to avoid too big mallocs */ 631 631 /* The message is suspect */ 632 TRACE_DEBUG(INFO, "Received suspect header [ver: %d, size: % g], assume disconnection", (int)header[0], length);632 TRACE_DEBUG(INFO, "Received suspect header [ver: %d, size: %z], assume disconnection", (int)header[0], length); 633 633 goto out; 634 634 } … … 895 895 ssize_t ret; 896 896 size_t sent = 0; 897 TRACE_ENTRY("%p %p % g", conn, buf, len);897 TRACE_ENTRY("%p %p %z", conn, buf, len); 898 898 do { 899 899 if (conn->cc_tls) { … … 910 910 int fd_cnx_send(struct cnxctx * conn, unsigned char * buf, size_t len) 911 911 { 912 TRACE_ENTRY("%p %p % g", conn, buf, len);912 TRACE_ENTRY("%p %p %z", conn, buf, len); 913 913 914 914 CHECK_PARAMS(conn && (conn->cc_socket > 0) && buf && len); 915 915 916 TRACE_DEBUG(FULL, "Sending % gb %sdata on connection %s", len, conn->cc_tls ? "TLS-protected ":"", conn->cc_id);916 TRACE_DEBUG(FULL, "Sending %zb %sdata on connection %s", len, conn->cc_tls ? "TLS-protected ":"", conn->cc_id); 917 917 918 918 switch (conn->cc_proto) {
Note: See TracChangeset
for help on using the changeset viewer.