From d90718c9b60f2a711e8f009b1168d9f9b87d54a0 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 4 Jan 2022 06:30:29 +0000 Subject: [PATCH] base: set HEIM_JSON_F_NO_DATA_DICT in heim_audit_setkv_object() Fixes pretty-printing data print to work with heim_audit_setkv_object() as well as heim_audit_addkv_object(). --- lib/base/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/log.c b/lib/base/log.c index ded4bbe76..0db015b4f 100644 --- a/lib/base/log.c +++ b/lib/base/log.c @@ -930,7 +930,7 @@ heim_audit_setkv_object(heim_svc_req_desc r, const char *k, heim_object_t value) if (key == NULL) return; - descr = heim_json_copy_serialize(value, 0, NULL); + descr = heim_json_copy_serialize(value, HEIM_JSON_F_NO_DATA_DICT, NULL); heim_log(r->hcontext, r->logf, 7, "heim_audit_setkv_object(): " "setting kv pair %s=%s", k, descr ? heim_string_get_utf8(descr) : "");