X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstream-ssl.c;h=f2bd5137c9028ce828561968c8c37f46fa9d99cd;hb=34582733d9aad82bba60f4bf986b62d58412502a;hp=1e748c0079fd092bdddfee256e263eff6ffb4287;hpb=4d3daf048134e8c375fdadcec7e51d1dc28fe0b6;p=sliver-openvswitch.git diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c index 1e748c007..f2bd5137c 100644 --- a/lib/stream-ssl.c +++ b/lib/stream-ssl.c @@ -1212,7 +1212,7 @@ log_ca_cert(const char *file_name, X509 *cert) if (i) { ds_put_char(&fp, ':'); } - ds_put_format(&fp, "%02hhx", digest[i]); + ds_put_format(&fp, "%02x", digest[i]); } } subject = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); @@ -1247,7 +1247,7 @@ stream_ssl_set_ca_cert_file__(const char *file_name, for (i = 0; i < n_certs; i++) { /* SSL_CTX_add_client_CA makes a copy of the relevant data. */ if (SSL_CTX_add_client_CA(ctx, certs[i]) != 1) { - VLOG_ERR("failed to add client certificate %zu from %s: %s", + VLOG_ERR("failed to add client certificate %"PRIuSIZE" from %s: %s", i, file_name, ERR_error_string(ERR_get_error(), NULL)); } else { @@ -1369,7 +1369,7 @@ ssl_protocol_cb(int write_p, int version OVS_UNUSED, int content_type, ds_put_format(&details, "type %d", content_type); } - VLOG_DBG("%s%u%s%s %s (%zu bytes)", + VLOG_DBG("%s%u%s%s %s (%"PRIuSIZE" bytes)", sslv->type == CLIENT ? "client" : "server", sslv->session_nr, write_p ? "-->" : "<--", stream_get_name(&sslv->stream), ds_cstr(&details), len);