- if (eval & EVAL_TEXT_FILE)
- {
- va_list ap;
- asl_object_t msg = asl_new(ASL_TYPE_MSG);
- const char *facility;
-
- if (fac != 0)
- {
- facility = asl_syslog_faciliy_num_to_name(fac);
- if (facility != NULL) asl_set(msg, ASL_KEY_FACILITY, facility);
- }
-
-#ifdef __STDC__
- va_start(ap, fmt);
-#else
- va_start(ap);
-#endif
- _asl_lib_vlog_text(_sl_asl, eval, msg, fmt, ap);
- va_end(ap);
+void
+syslog_os_log(int pri, const char *fmt, ...)
+{
+ va_list ap;
+ va_start(ap, fmt);
+ _vsyslog(pri, fmt, ap, __builtin_return_address(0), false);
+ va_end(ap);
+}