drivers/bcm2835gpio: fix build for ARM host
The commit84ca4995ad
("drivers/bcm2835gpio: fix usage messages") has been merged before commit6cb5ba6f11
("helper/command: change prototype of command_print/command_print_sameline") introducing two new call to command_print() that were not modified by the second commit. This triggers a compile error on ARM host. Fix the incorrect function call. Change-Id: I2736bae24141685b7590fd6b4aa5e6a29b2cab29 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5174 Tested-by: jenkins
This commit is contained in:
parent
b3d4c97b9f
commit
ea45029829
|
@ -301,7 +301,7 @@ COMMAND_HANDLER(bcm2835gpio_handle_speed_coeffs)
|
||||||
COMMAND_PARSE_NUMBER(int, CMD_ARGV[1], speed_offset);
|
COMMAND_PARSE_NUMBER(int, CMD_ARGV[1], speed_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
command_print(CMD_CTX, "BCM2835 GPIO: speed_coeffs = %d, speed_offset = %d",
|
command_print(CMD, "BCM2835 GPIO: speed_coeffs = %d, speed_offset = %d",
|
||||||
speed_coeff, speed_offset);
|
speed_coeff, speed_offset);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
@ -311,7 +311,7 @@ COMMAND_HANDLER(bcm2835gpio_handle_peripheral_base)
|
||||||
if (CMD_ARGC == 1)
|
if (CMD_ARGC == 1)
|
||||||
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], bcm2835_peri_base);
|
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], bcm2835_peri_base);
|
||||||
|
|
||||||
command_print(CMD_CTX, "BCM2835 GPIO: peripheral_base = 0x%08x",
|
command_print(CMD, "BCM2835 GPIO: peripheral_base = 0x%08x",
|
||||||
bcm2835_peri_base);
|
bcm2835_peri_base);
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue