From: Tobias Brunner Date: Tue, 7 May 2019 12:43:30 +0000 (+0200) Subject: libimcv: Use proper printf specifier for unsigned issuer and responder IDs X-Git-Tag: 5.8.0rc1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=12e64e5cf4fc15d97b11fe7faafcde0a1a5d24f2;p=thirdparty%2Fstrongswan.git libimcv: Use proper printf specifier for unsigned issuer and responder IDs --- diff --git a/src/libimcv/seg/seg_contract.c b/src/libimcv/seg/seg_contract.c index 41aed583ac..dfaaacf62c 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);