]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/Common/ipsecMessageTracer.h
ipsec-326.tar.gz
[apple/ipsec.git] / ipsec-tools / Common / ipsecMessageTracer.h
index 126926d3d99541598b2bd083f55d4392e966634a..4f6c80b529448c8e6d86606213894979370f29e2 100644 (file)
@@ -44,7 +44,7 @@
 #define IPSECASLDOMAIN                                                          CONSTSTR("com.apple.Networking.ipsec.asl")
 #define IPSECASLKEY                                                             CONSTSTR("IPSEC")
 
-#if TARGET_OS_EMBEDDED
+#if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
 
 #define IPSECCONFIGTRACEREVENT(config, eventCode, message, failure_reason)             
 
@@ -55,7 +55,7 @@
 #define IPSECSESSIONTRACERSTOP(session, is_failure, reason)                                            
 #define IPSECSESSIONTRACERESTABLISHED(session)                                  
 
-#else
+#else // (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
 
 #define IPSECCONFIGTRACEREVENT(config, eventCode, message, failure_reason)             ipsecConfigTracerEvent(config, eventCode, message, failure_reason)
 
 #define IPSECSESSIONTRACERSTOP(session, is_failure, reason)                                            ipsecSessionTracerStop(session, is_failure, reason)
 #define IPSECSESSIONTRACERESTABLISHED(session)                                  ipsecSessionTracerLogEstablished(session)
 
-#endif
+#endif // (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR)
 
-#if 1 //TARGET_OS_EMBEDDED
-#define IPSECLOGASLMSG(format, args...) syslog(LOG_NOTICE, format, ##args);
+#if 1
+#define IPSECLOGASLMSG(format, args...) plog(ASL_LEVEL_NOTICE, format, ##args);
 #else
 #define IPSECLOGASLMSG(format, args...) do {                                                           \
                                                aslmsg m = asl_new(ASL_TYPE_MSG);                       \