summaryrefslogtreecommitdiffstats
path: root/network_cmds/rtadvd.tproj/rtadvd_logging.h
blob: 11273e64c90c576770c6b9ce9087be5bd035f233 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2019 Apple Inc. All rights reserved.
 *
 * This document is the property of Apple Inc.
 * It is considered confidential and proprietary.
 *
 * This document may not be reproduced or transmitted in any form,
 * in whole or in part, without the express written permission of
 * Apple Inc.
 */
#include <os/log.h>
extern void rtadvdLog(int level, const char *format, ...);

#define errorlog(__format, ...)            \
rtadvdLog(OS_LOG_TYPE_DEFAULT, __format, ## __VA_ARGS__)

#define noticelog(__format, ...)            \
rtadvdLog(OS_LOG_TYPE_DEFAULT, __format, ## __VA_ARGS__)

#define infolog(__format, ...)            \
rtadvdLog(OS_LOG_TYPE_INFO, __format, ## __VA_ARGS__)

#define debuglog(__format, ...)            \
rtadvdLog(OS_LOG_TYPE_DEBUG, __format, ## __VA_ARGS__)