Fix function formatting 83/245483/1
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 9 Oct 2020 14:03:32 +0000 (16:03 +0200)
committerMateusz Majewski <m.majewski2@samsung.com>
Fri, 9 Oct 2020 14:03:32 +0000 (16:03 +0200)
Change-Id: Id9058c6480d1a463f09ff9effe78d29575f2fdad

src/libdlog/log.c
src/libdlogutil/lib.c
src/logger/qos_distributions.c
src/logutil/logutil.c
src/tests/log_file.c
src/tests/logprint.c
src/tests/sort_vector_pos.c

index e95c863..46de85f 100644 (file)
@@ -567,7 +567,8 @@ void __critical_log(log_id_t log_id, int prio, const char *tag, const char *fmt,
        __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);
@@ -575,7 +576,8 @@ static void stash_critical_inner(log_id_t log_id, log_priority prio, const char
        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;
 }
index d6a9804..c850e47 100644 (file)
@@ -130,7 +130,8 @@ EXPORT_API void dlogutil_state_destroy(dlogutil_state_s *state)
        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;
index 159ddae..c7faf6e 100644 (file)
@@ -8,7 +8,8 @@ static inline int divide_rounding_upwards(int dividend, int divisor)
        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;
 }
index a3862c7..3246b2f 100644 (file)
@@ -43,7 +43,8 @@ static void show_version(const char *name)
        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);
 }
index da72019..18ef992 100644 (file)
@@ -117,7 +117,8 @@ int __wrap_fstat64(int fd, struct stat *buf)
 }
 
 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
 }
index 2aabfa1..392268e 100644 (file)
@@ -696,7 +696,8 @@ void check_json()
        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,
index 9b4cf33..6ce0fcc 100644 (file)
@@ -69,8 +69,8 @@ static bool use_real_clock_gettime = true;
 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);