• Geert Uytterhoeven's avatar
    clk: Neaten clk_summary output · fb8abb7a
    Geert Uytterhoeven authored
      - Limit ruler to 80 characters (was: 81),
      - Widen rate column by 1 for nicer spacing,
      - Right-align numbers and their column headers,
      - Move a newline to reduce the number of seq_printf() calls,
      - Use set_puts() for fixed strings.
    
    Before:
    
       clock                        enable_cnt  prepare_cnt  rate        accuracy
    ---------------------------------------------------------------------------------
     extal                          2           2            20000000   0
        thermal                     1           1            20000000   0
        cp                          0           0            10000000   0
           tpu0                     0           0            10000000   0
           tmu0                     0           0            10000000   0
        main                        1           1            20000000   0
           pll3                     0           0            1600000000 0
              ddr                   0           0            200000000  0
              zb3d2                 0           0            200000000  0
              zb3                   0           0            400000000  0
           pll1                     4           4            1560000000 0
              oscclk                0           0            126953     0
              rclk                  1           1            31738      0
                 cmt1               0           0            31738      0
                 cmt0               1           1            31738      0
              imp                   0           0            390000000  0
    
    After:
    
       clock                         enable_cnt  prepare_cnt        rate   accuracy
    --------------------------------------------------------------------------------
     extal                                    2            2    20000000          0
        thermal                               1            1    20000000          0
        cp                                    0            0    10000000          0
           tpu0                               0            0    10000000          0
           tmu0                               0            0    10000000          0
        main                                  1            1    20000000          0
           pll3                               0            0  1600000000          0
              ddr                             0            0   200000000          0
              zb3d2                           0            0   200000000          0
              zb3                             0            0   400000000          0
           pll1                               4            4  1560000000          0
              oscclk                          0            0      126953          0
              rclk                            1            1       31738          0
                 cmt1                         0            0       31738          0
                 cmt0                         1            1       31738          0
              imp                             0            0   390000000          0
    Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
    Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
    fb8abb7a
clk.c 63 KB