__critical_log_child(main_pid, main_tid, log_id, prio, tag, fmt, ap);
}
-static void stash_critical_inner(log_id_t log_id, log_priority prio, const char *tag, const char *fmt, ...) {
+static void stash_critical_inner(log_id_t log_id, log_priority prio, const char *tag, const char *fmt, ...)
+{
va_list ap;
va_start(ap, fmt);
va_end(ap);
}
-static int stash_critical(log_id_t log_id, log_priority prio, const char *tag, const char *msg) {
+static int stash_critical(log_id_t log_id, log_priority prio, const char *tag, const char *msg)
+{
stash_critical_inner(log_id, prio, tag, "FAILED TO LOG: %s", msg);
return 0;
}
free(state);
}
-static int check_is_pipe(struct log_config *conf, bool *is_pipe) {
+static int check_is_pipe(struct log_config *conf, bool *is_pipe)
+{
const char *const backend = log_config_get(conf, "backend");
if (!backend)
return TIZEN_ERROR_INVALID_PARAMETER;
return (dividend + (divisor - 1)) / (divisor ?: 1);
}
-static inline int sort_by_count(const void *vlhs, const void *vrhs) {
+static inline int sort_by_count(const void *vlhs, const void *vrhs)
+{
const struct metrics_pid_aggr_info *lhs = vlhs, *rhs = vrhs;
return lhs->count - rhs->count;
}
printf("%s version: %s-%s\n", name, __DLOG_VERSION, __DLOG_RELEASE);
}
-static void config_cleanup(dlogutil_config_s *const *config) {
+static void config_cleanup(dlogutil_config_s *const *config)
+{
assert(config);
dlogutil_config_destroy(*config);
}
}
static int isatty_ret;
-int __wrap_isatty(int fd) {
+int __wrap_isatty(int fd)
+{
return isatty_ret;
// We should also set errno, but we won't
}
free(ent);
}
-void check_utf8_correctness() {
+void check_utf8_correctness()
+{
/* © is two bytes */
static const struct logprint_test_case test_2_bytes_0_shift[] = {
{FORMAT_KERNELTIME, DLOG_INFO, false,
static time_t seconds = 0;
static long nseconds = 0;
int __real_clock_gettime(clockid_t clk_id, struct timespec *tp);
-int __wrap_clock_gettime(clockid_t clk_id, struct timespec *tp) {
-
+int __wrap_clock_gettime(clockid_t clk_id, struct timespec *tp)
+{
if (use_real_clock_gettime)
return __real_clock_gettime(clk_id, tp);