gettime: cleanups
authorVincent Fu <vincent.fu@samsung.com>
Wed, 14 Sep 2022 17:50:52 +0000 (10:50 -0700)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 19 Sep 2022 13:42:14 +0000 (09:42 -0400)
Fix a comment and get rid of the extra new lines in the debug print.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
gettime.c

index 14462420219812266033a297d3c4d38f8fdc9006..8993be1688c3073c01a16461c0d5b81fcb1df9bb 100644 (file)
--- a/gettime.c
+++ b/gettime.c
@@ -313,7 +313,7 @@ static int calibrate_cpu_clock(void)
 
        max_ticks = MAX_CLOCK_SEC * cycles_per_msec * 1000ULL;
        max_mult = ULLONG_MAX / max_ticks;
-       dprint(FD_TIME, "\n\nmax_ticks=%llu, __builtin_clzll=%d, "
+       dprint(FD_TIME, "max_ticks=%llu, __builtin_clzll=%d, "
                        "max_mult=%llu\n", max_ticks,
                        __builtin_clzll(max_ticks), max_mult);
 
@@ -335,7 +335,7 @@ static int calibrate_cpu_clock(void)
 
        /*
         * Find the greatest power of 2 clock ticks that is less than the
-        * ticks in MAX_CLOCK_SEC_2STAGE
+        * ticks in MAX_CLOCK_SEC
         */
        max_cycles_shift = max_cycles_mask = 0;
        tmp = MAX_CLOCK_SEC * 1000ULL * cycles_per_msec;