Fix printing clock values lower than 100 MHz
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 15 Dec 2015 13:17:34 +0000 (14:17 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Tue, 15 Dec 2015 13:17:34 +0000 (14:17 +0100)
u-boot/board/ar7240/common/common.c

index 436ea18ea29c66528780a1c25bb89820794395fb..8dd0aae7575f3e28be62d2820f6a6c7f0e6697bd 100644 (file)
@@ -101,7 +101,7 @@ void print_board_info(void)
        spi_clk = spi_clk / 1000000;
        ref_clk = ref_clk / 1000000;
 
-       printf("%" ALIGN_SIZE "s %d/%d/%d/%3d/%3d MHz\n",
+       printf("%" ALIGN_SIZE "s %3d/%3d/%3d/%3d/%3d MHz\n",
                " ", cpu_clk, ddr_clk, ahb_clk, spi_clk, ref_clk);
 
        puts("\n");