]> git.cameronkatri.com Git - apple_cmds.git/blob - network_cmds/rtadvd.tproj/rtadvd_logging.h
download.sh: Properly update
[apple_cmds.git] / network_cmds / rtadvd.tproj / rtadvd_logging.h
1 /*
2 * Copyright (c) 2019 Apple Inc. All rights reserved.
3 *
4 * This document is the property of Apple Inc.
5 * It is considered confidential and proprietary.
6 *
7 * This document may not be reproduced or transmitted in any form,
8 * in whole or in part, without the express written permission of
9 * Apple Inc.
10 */
11 #include <os/log.h>
12 extern void rtadvdLog(int level, const char *format, ...);
13
14 #define errorlog(__format, ...) \
15 rtadvdLog(OS_LOG_TYPE_DEFAULT, __format, ## __VA_ARGS__)
16
17 #define noticelog(__format, ...) \
18 rtadvdLog(OS_LOG_TYPE_DEFAULT, __format, ## __VA_ARGS__)
19
20 #define infolog(__format, ...) \
21 rtadvdLog(OS_LOG_TYPE_INFO, __format, ## __VA_ARGS__)
22
23 #define debuglog(__format, ...) \
24 rtadvdLog(OS_LOG_TYPE_DEBUG, __format, ## __VA_ARGS__)