diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-05-04 09:27:00 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-05-04 09:27:00 +0000 |
commit | a91acdb88b679b142c4b6e7519b5e9ff6810d4ae (patch) | |
tree | 77e1a7dc4e93d8bbef0274e6b47919b597640604 /sys/netinet/sctputil.c | |
parent | 3f57d6ecd5469f6795c7306903247ca8bba1a12d (diff) | |
download | FreeBSD-src-a91acdb88b679b142c4b6e7519b5e9ff6810d4ae.zip FreeBSD-src-a91acdb88b679b142c4b6e7519b5e9ff6810d4ae.tar.gz |
Use SCTP_PRINTF() instead of printf() in all SCTP sources.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r-- | sys/netinet/sctputil.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 2ce2eaf..13ad035 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -1127,7 +1127,7 @@ sctp_print_mapping_array(struct sctp_association *asoc) { unsigned int i, limit; - printf("Mapping array size: %d, baseTSN: %8.8x, cumAck: %8.8x, highestTSN: (%8.8x, %8.8x).\n", + SCTP_PRINTF("Mapping array size: %d, baseTSN: %8.8x, cumAck: %8.8x, highestTSN: (%8.8x, %8.8x).\n", asoc->mapping_array_size, asoc->mapping_array_base_tsn, asoc->cumulative_tsn, @@ -1138,23 +1138,23 @@ sctp_print_mapping_array(struct sctp_association *asoc) break; } } - printf("Renegable mapping array (last %d entries are zero):\n", asoc->mapping_array_size - limit); + SCTP_PRINTF("Renegable mapping array (last %d entries are zero):\n", asoc->mapping_array_size - limit); for (i = 0; i < limit; i++) { - printf("%2.2x%c", asoc->mapping_array[i], ((i + 1) % 16) ? ' ' : '\n'); + SCTP_PRINTF("%2.2x%c", asoc->mapping_array[i], ((i + 1) % 16) ? ' ' : '\n'); } if (limit % 16) - printf("\n"); + SCTP_PRINTF("\n"); for (limit = asoc->mapping_array_size; limit > 1; limit--) { if (asoc->nr_mapping_array[limit - 1]) { break; } } - printf("Non renegable mapping array (last %d entries are zero):\n", asoc->mapping_array_size - limit); + SCTP_PRINTF("Non renegable mapping array (last %d entries are zero):\n", asoc->mapping_array_size - limit); for (i = 0; i < limit; i++) { - printf("%2.2x%c", asoc->nr_mapping_array[i], ((i + 1) % 16) ? ' ' : '\n'); + SCTP_PRINTF("%2.2x%c", asoc->nr_mapping_array[i], ((i + 1) % 16) ? ' ' : '\n'); } if (limit % 16) - printf("\n"); + SCTP_PRINTF("\n"); } int @@ -1292,7 +1292,7 @@ select_a_new_ep: goto no_stcb; } /* If we reach here huh? */ - printf("Unknown it ctl flag %x\n", + SCTP_PRINTF("Unknown it ctl flag %x\n", sctp_it_ctl.iterator_flags); sctp_it_ctl.iterator_flags = 0; } @@ -5392,7 +5392,7 @@ found_one: #ifdef INVARIANTS panic("refcnt already incremented"); #else - printf("refcnt already incremented?\n"); + SCTP_PRINTF("refcnt already incremented?\n"); #endif } else { atomic_add_int(&stcb->asoc.refcnt, 1); |