mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
Fix some checkpatch warnings in calls to debug()
Fix up some incorrect code style in calls to functions in the log.h header, mostly debug(). Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0914011310
commit
3c7dded8e1
7 changed files with 30 additions and 31 deletions
|
@ -303,7 +303,7 @@ void pci_init_board(void)
|
||||||
porpllsr = in_be32(&gur->porpllsr);
|
porpllsr = in_be32(&gur->porpllsr);
|
||||||
io_sel = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
|
io_sel = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >> 19;
|
||||||
|
|
||||||
debug (" pci_init_board: devdisr=%x, io_sel=%x\n", devdisr, io_sel);
|
debug(" %s: devdisr=%x, io_sel=%x\n", __func__, devdisr, io_sel);
|
||||||
|
|
||||||
pci_speed = 66666000;
|
pci_speed = 66666000;
|
||||||
pci_32 = 1;
|
pci_32 = 1;
|
||||||
|
|
|
@ -411,8 +411,7 @@ int flash_sect_erase(ulong addr_first, ulong addr_last)
|
||||||
++bank, ++info) {
|
++bank, ++info) {
|
||||||
if (s_first[bank]>=0) {
|
if (s_first[bank]>=0) {
|
||||||
erased += s_last[bank] - s_first[bank] + 1;
|
erased += s_last[bank] - s_first[bank] + 1;
|
||||||
debug ("Erase Flash from 0x%08lx to 0x%08lx "
|
debug("Erase Flash from 0x%08lx to 0x%08lx in Bank # %ld ",
|
||||||
"in Bank # %ld ",
|
|
||||||
info->start[s_first[bank]],
|
info->start[s_first[bank]],
|
||||||
(s_last[bank] == info->sector_count) ?
|
(s_last[bank] == info->sector_count) ?
|
||||||
info->start[0] + info->size - 1 :
|
info->start[0] + info->size - 1 :
|
||||||
|
@ -613,8 +612,8 @@ int flash_sect_protect(int p, ulong addr_first, ulong addr_last)
|
||||||
|
|
||||||
if (s_first[bank]>=0 && s_first[bank]<=s_last[bank]) {
|
if (s_first[bank]>=0 && s_first[bank]<=s_last[bank]) {
|
||||||
debug("%sProtecting sectors %d..%d in bank %ld\n",
|
debug("%sProtecting sectors %d..%d in bank %ld\n",
|
||||||
p ? "" : "Un-",
|
p ? "" : "Un-", s_first[bank],
|
||||||
s_first[bank], s_last[bank], bank+1);
|
s_last[bank], bank + 1);
|
||||||
protected += s_last[bank] - s_first[bank] + 1;
|
protected += s_last[bank] - s_first[bank] + 1;
|
||||||
for (i=s_first[bank]; i<=s_last[bank]; ++i) {
|
for (i=s_first[bank]; i<=s_last[bank]; ++i) {
|
||||||
#if defined(CONFIG_SYS_FLASH_PROTECTION)
|
#if defined(CONFIG_SYS_FLASH_PROTECTION)
|
||||||
|
|
Loading…
Reference in a new issue