aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-11-09 15:50:55 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2020-11-15 21:04:29 +0000
commit109dc1975f25a36a501811e48267b17d7dc19688 (patch)
tree28326823bc1a7ef21115316f61aafe11dbaafd26 /src/target/target.c
parent175f30e6952be5ca0e06b2e8753d8c72d6b90446 (diff)
downloadriscv-openocd-109dc1975f25a36a501811e48267b17d7dc19688.zip
riscv-openocd-109dc1975f25a36a501811e48267b17d7dc19688.tar.gz
riscv-openocd-109dc1975f25a36a501811e48267b17d7dc19688.tar.bz2
flash/stmqspi: minor fixes on coding style
Add space around operators; use BIT() macro in place of left shifting constant 1; remove space between cast operator and value; do not check a pointer before free() it; add parenthesis around parameters in macros; fix indentation using only TABs; remove line continuation '\' at code lines out of macros. Change-Id: I809e8ee72d7bfe49d0edf10afb36efe2458de77c Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Fixes: e44539d66c89 ("Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface") Reviewed-on: http://openocd.zylin.com/5932 Tested-by: jenkins Reviewed-by: Christopher Head <chead@zaber.com>
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index db759d9..9d4fe77 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -1154,7 +1154,7 @@ int target_run_read_async_algorithm(struct target *target,
}
LOG_DEBUG("offs 0x%zx count 0x%" PRIx32 " wp 0x%" PRIx32 " rp 0x%" PRIx32,
- (size_t) (buffer - buffer_orig), count, wp, rp);
+ (size_t)(buffer - buffer_orig), count, wp, rp);
if (wp == 0) {
LOG_ERROR("flash read algorithm aborted by target");