From: Antonio Borneo Date: Tue, 14 May 2019 21:38:29 +0000 (+0200) Subject: drivers/bcm2835gpio: fix build for ARM host X-Git-Tag: v0.11.0-rc1~665 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=refs%2Fchanges%2F74%2F5174%2F3 drivers/bcm2835gpio: fix build for ARM host The commit 84ca4995adfa ("drivers/bcm2835gpio: fix usage messages") has been merged before commit 6cb5ba6f1136 ("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 Reviewed-on: http://openocd.zylin.com/5174 Tested-by: jenkins --- diff --git a/src/jtag/drivers/bcm2835gpio.c b/src/jtag/drivers/bcm2835gpio.c index edec4beffd..36e10b6da6 100644 --- a/src/jtag/drivers/bcm2835gpio.c +++ b/src/jtag/drivers/bcm2835gpio.c @@ -301,7 +301,7 @@ COMMAND_HANDLER(bcm2835gpio_handle_speed_coeffs) 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); return ERROR_OK; } @@ -311,7 +311,7 @@ COMMAND_HANDLER(bcm2835gpio_handle_peripheral_base) if (CMD_ARGC == 1) 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); return ERROR_OK; }