summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_auth.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-05-04 09:27:00 +0000
committertuexen <tuexen@FreeBSD.org>2012-05-04 09:27:00 +0000
commita91acdb88b679b142c4b6e7519b5e9ff6810d4ae (patch)
tree77e1a7dc4e93d8bbef0274e6b47919b597640604 /sys/netinet/sctp_auth.c
parent3f57d6ecd5469f6795c7306903247ca8bba1a12d (diff)
downloadFreeBSD-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/sctp_auth.c')
-rw-r--r--sys/netinet/sctp_auth.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/netinet/sctp_auth.c b/sys/netinet/sctp_auth.c
index bae310b..9581251 100644
--- a/sys/netinet/sctp_auth.c
+++ b/sys/netinet/sctp_auth.c
@@ -284,16 +284,16 @@ sctp_print_key(sctp_key_t * key, const char *str)
uint32_t i;
if (key == NULL) {
- printf("%s: [Null key]\n", str);
+ SCTP_PRINTF("%s: [Null key]\n", str);
return;
}
- printf("%s: len %u, ", str, key->keylen);
+ SCTP_PRINTF("%s: len %u, ", str, key->keylen);
if (key->keylen) {
for (i = 0; i < key->keylen; i++)
- printf("%02x", key->key[i]);
- printf("\n");
+ SCTP_PRINTF("%02x", key->key[i]);
+ SCTP_PRINTF("\n");
} else {
- printf("[Null key]\n");
+ SCTP_PRINTF("[Null key]\n");
}
}
@@ -303,16 +303,16 @@ sctp_show_key(sctp_key_t * key, const char *str)
uint32_t i;
if (key == NULL) {
- printf("%s: [Null key]\n", str);
+ SCTP_PRINTF("%s: [Null key]\n", str);
return;
}
- printf("%s: len %u, ", str, key->keylen);
+ SCTP_PRINTF("%s: len %u, ", str, key->keylen);
if (key->keylen) {
for (i = 0; i < key->keylen; i++)
- printf("%02x", key->key[i]);
- printf("\n");
+ SCTP_PRINTF("%02x", key->key[i]);
+ SCTP_PRINTF("\n");
} else {
- printf("[Null key]\n");
+ SCTP_PRINTF("[Null key]\n");
}
}
OpenPOWER on IntegriCloud