From 12e64e5cf4fc15d97b11fe7faafcde0a1a5d24f2 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 7 May 2019 14:43:30 +0200 Subject: [PATCH] libimcv: Use proper printf specifier for unsigned issuer and responder IDs --- src/libimcv/seg/seg_contract.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libimcv/seg/seg_contract.c b/src/libimcv/seg/seg_contract.c index 41aed583a..dfaaacf62 100644 --- a/src/libimcv/seg/seg_contract.c +++ b/src/libimcv/seg/seg_contract.c @@ -338,12 +338,12 @@ METHOD(seg_contract_t, get_info_string, void, if (this->is_issuer && request) { - written = snprintf(pos, len, "%s %d requests", + written = snprintf(pos, len, "%s %lu requests", this->is_imc ? "IMC" : "IMV", this->issuer_id); } else { - written = snprintf(pos, len, "%s %d received", + written = snprintf(pos, len, "%s %lu received", this->is_imc ? "IMC" : "IMV", this->is_issuer ? this->issuer_id : this->responder_id); @@ -368,7 +368,7 @@ METHOD(seg_contract_t, get_info_string, void, if ((!this->is_issuer && this->issuer_id != TNC_IMVID_ANY) || ( this->is_issuer && this->responder_id != TNC_IMVID_ANY)) { - written = snprintf(pos, len, "from %s %d ", + written = snprintf(pos, len, "from %s %lu ", this->is_imc ? "IMV" : "IMC", this->is_issuer ? this->responder_id : this->issuer_id);