This is an automated email from Gerrit.

"Mark Zhuang <mark.zhu...@spacemit.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/7585

-- gerrit

commit b908edf123769aa1008ad80f53cf2a95abbe4063
Author: Mark Zhuang <mark.zhu...@spacemit.com>
Date:   Mon Apr 10 11:17:17 2023 +0800

    openocd: fix some coding style
    
    Signed-off-by: Mark Zhuang <mark.zhu...@spacemit.com>
    Change-Id: I50fce3da283a78ba02bf70b6a752f7bf778d79f5

diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c
index 043494c789..207346f10d 100644
--- a/src/flash/nor/em357.c
+++ b/src/flash/nor/em357.c
@@ -709,7 +709,7 @@ static int em357_probe(struct flash_bank *bank)
 
        em357_info->ppage_size = 4;
 
-       LOG_INFO("flash size = %d KiB", num_pages*page_size/1024);
+       LOG_INFO("flash size = %d KiB", num_pages * page_size / 1024);
 
        free(bank->sectors);
 
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index da5da3197d..f132017e6f 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -419,7 +419,7 @@ static int mem_ap_write(struct adiv5_ap *ap, const uint8_t 
*buffer, uint32_t siz
                                break;
                        case 2:
                                outvalue |= (uint32_t)*buffer << 8 * 
(drw_byte_idx++ & 3);
-                               outvalue |= (uint32_t)*(buffer+1) << 8 * 
(drw_byte_idx++ & 3);
+                               outvalue |= (uint32_t)*(buffer + 1) << 8 * 
(drw_byte_idx++ & 3);
                                outvalue |= (uint32_t)*buffer++ << 8 * 
(drw_byte_idx++ & 3);
                                outvalue |= (uint32_t)*buffer++ << 8 * 
(drw_byte_idx & 3);
                                break;
diff --git a/src/target/xtensa/xtensa.c b/src/target/xtensa/xtensa.c
index fcd00487c8..737719c259 100644
--- a/src/target/xtensa/xtensa.c
+++ b/src/target/xtensa/xtensa.c
@@ -512,7 +512,7 @@ static void xtensa_queue_exec_ins_wide(struct xtensa 
*xtensa, uint8_t *ops, uint
                for (int32_t i = oplenw - 1; i > 0; i--)
                        xtensa_queue_dbg_reg_write(xtensa,
                                XDMREG_DIR0 + i,
-                               target_buffer_get_u32(xtensa->target, 
&ops_padded[sizeof(uint32_t)*i]));
+                               target_buffer_get_u32(xtensa->target, 
&ops_padded[sizeof(uint32_t) * i]));
                /* Write DIR0EXEC last */
                xtensa_queue_dbg_reg_write(xtensa,
                        XDMREG_DIR0EXEC,

-- 

Reply via email to