mDNSDebug.c revision 5ffb0c9b03b5149ff4f5821a62be4a52408ada2a
/* -*- Mode: C; tab-width: 4 -*-
*
* Copyright (c) 2003 Apple Computer, 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.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
File: mDNSDebug.c
Contains: Implementation of debugging utilities. Requires a POSIX environment.
Version: 1.0
*/
#include "mDNSDebug.h"
#include <stdio.h>
#define LOG_PID 0x01
#define LOG_CONS 0x02
#define LOG_PERROR 0x20
#else
#include <syslog.h>
#endif
#include "mDNSEmbeddedAPI.h"
mDNSexport int mDNS_LoggingEnabled = 0;
mDNSexport int mDNS_PacketLoggingEnabled = 0;
mDNSexport int mDNS_McastLoggingEnabled = 0;
mDNSexport int mDNS_McastTracingEnabled = 0;
#if MDNS_DEBUGMSGS
#else
#endif
// Note, this uses mDNS_vsnprintf instead of standard "vsnprintf", because mDNS_vsnprintf knows
// how to print special data types like IP addresses and length-prefixed domain names
#if MDNS_DEBUGMSGS > 1
{
char buffer[512];
}
#endif
// Log message with default "mDNSResponder" ident string at the start
{
char buffer[512];
}
#define LOG_HELPER_BODY(L) \
{ \
}
// see mDNSDebug.h
#endif
#if MDNS_DEBUGMSGS
#endif
// Log message with default "mDNSResponder" ident string at the start