diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-18 13:07:18 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-23 18:17:22 +0200 |
commit | a6b1d332b1d22fb47edd711a82e1857e42110b62 (patch) | |
tree | c25f556baa10418f7225b8a5e8cee401352ea2a3 /mDNSResponder/mDNSMacOSX/helper-stubs.c | |
parent | mDNSResponder: Update to v878.70.2 (diff) | |
download | rtems-libbsd-a6b1d332b1d22fb47edd711a82e1857e42110b62.tar.bz2 |
mDNSResponder: Update to v878.200.35
The sources can be obtained via:
https://opensource.apple.com/tarballs/mDNSResponder/mDNSResponder-878.200.35.tar.gz
Update #4010.
Diffstat (limited to 'mDNSResponder/mDNSMacOSX/helper-stubs.c')
-rw-r--r-- | mDNSResponder/mDNSMacOSX/helper-stubs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mDNSResponder/mDNSMacOSX/helper-stubs.c b/mDNSResponder/mDNSMacOSX/helper-stubs.c index a1e804fd..c7c34968 100644 --- a/mDNSResponder/mDNSMacOSX/helper-stubs.c +++ b/mDNSResponder/mDNSMacOSX/helper-stubs.c @@ -1,6 +1,6 @@ /* -*- Mode: C; tab-width: 4 -*- * - * Copyright (c) 2007-2015 Apple Inc. All rights reserved. + * Copyright (c) 2007-2018 Apple Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,10 +55,10 @@ static int64_t maxwait_secs = 5LL; //************************************************************************************************************* // Utility Functions -static void LogDebug(const char *prefix, xpc_object_t o) +static void HelperLog(const char *prefix, xpc_object_t o) { char *desc = xpc_copy_description(o); - mDNSHELPER_DEBUG("LogDebug %s: %s", prefix, desc); + mDNSHELPER_DEBUG("HelperLog %s: %s", prefix, desc); free(desc); } @@ -83,7 +83,7 @@ mDNSlocal int SendDict_ToServer(xpc_object_t msg) { __block int errorcode = kHelperErr_NoResponse; - LogDebug("SendDict_ToServer Sending msg to Daemon", msg); + HelperLog("SendDict_ToServer Sending msg to Daemon", msg); dispatch_semaphore_t sem = dispatch_semaphore_create(0); dispatch_retain(sem); // for the block below @@ -94,7 +94,7 @@ mDNSlocal int SendDict_ToServer(xpc_object_t msg) if (type == XPC_TYPE_DICTIONARY) { - LogDebug("SendDict_ToServer Received reply msg from Daemon", recv_msg); + HelperLog("SendDict_ToServer Received reply msg from Daemon", recv_msg); uint64_t reply_status = xpc_dictionary_get_uint64(recv_msg, kHelperReplyStatus); errorcode = xpc_dictionary_get_int64(recv_msg, kHelperErrCode); @@ -112,7 +112,7 @@ mDNSlocal int SendDict_ToServer(xpc_object_t msg) { LogMsg("SendDict_ToServer Received unexpected reply from daemon [%s]", xpc_dictionary_get_string(recv_msg, XPC_ERROR_KEY_DESCRIPTION)); - LogDebug("SendDict_ToServer Unexpected Reply contents", recv_msg); + HelperLog("SendDict_ToServer Unexpected Reply contents", recv_msg); } dispatch_semaphore_signal(sem); @@ -137,7 +137,7 @@ mDNSlocal xpc_object_t SendDict_GetReply(xpc_object_t msg) if (!dict) return NULL; xpc_retain(dict); - LogDebug("SendDict_GetReply Sending msg to Daemon", msg); + HelperLog("SendDict_GetReply Sending msg to Daemon", msg); dispatch_semaphore_t sem = dispatch_semaphore_create(0); dispatch_retain(sem); // for the block below @@ -148,7 +148,7 @@ mDNSlocal xpc_object_t SendDict_GetReply(xpc_object_t msg) if (type == XPC_TYPE_DICTIONARY) { - LogDebug("SendDict_GetReply Received reply msg from Daemon", recv_msg); + HelperLog("SendDict_GetReply Received reply msg from Daemon", recv_msg); uint64_t reply_status = xpc_dictionary_get_uint64(recv_msg, kHelperReplyStatus); switch (reply_status) @@ -171,7 +171,7 @@ mDNSlocal xpc_object_t SendDict_GetReply(xpc_object_t msg) { LogMsg("SendDict_GetReply Received unexpected reply from daemon [%s]", xpc_dictionary_get_string(recv_msg, XPC_ERROR_KEY_DESCRIPTION)); - LogDebug("SendDict_GetReply Unexpected Reply contents", recv_msg); + HelperLog("SendDict_GetReply Unexpected Reply contents", recv_msg); } dispatch_semaphore_signal(sem); |