Date:2013-01-16 03:14:25 (11 years 2 months ago)
Author:Werner Almesberger
Commit:752a77f015ec06e932906b3ee00e0e7511ade255
Message:ubb-patgen/ubb-patgen.c (show_frequencies): show duplicate entries only one

This only affects "quiet" operation since entries with the same frequency
differ in the why it's calculated in non-quiet operation.
Files: ubb-patgen/ubb-patgen.c (1 diff)

Change Details

ubb-patgen/ubb-patgen.c
9797{
9898    const struct mmcclk *clks;
9999    int n, i;
100    double last = 0;
100101
101102    clks = frequencies(&n);
102103    for (i = 0; i != n; i++) {
103104        if (quiet) {
104            printf("%f\n", clks[i].bus_clk_hz);
105            if (clks[i].bus_clk_hz != last)
106                printf("%f\n", clks[i].bus_clk_hz);
107            last = clks[i].bus_clk_hz;
105108        } else {
106109            printf("clkdiv = %u, clkrt = %u, bus_clk = ",
107110                clks[i].clkdiv, clks[i].clkrt);

Archive Download the corresponding diff file

Branches:
master



interactive