summaryrefslogtreecommitdiff
path: root/src/target/mips_ejtag.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-24 20:32:10 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-25 10:32:00 -0800
commit4946925bea77a4aace6c310b2b724cf2095c6719 (patch)
tree3f881c5a7125fce193efd20d008e29212ecb29b9 /src/target/mips_ejtag.c
parenta3d81eed4d2aac51056f36d7c00ee639bb39c552 (diff)
downloadopenocd+libswd-4946925bea77a4aace6c310b2b724cf2095c6719.tar.gz
openocd+libswd-4946925bea77a4aace6c310b2b724cf2095c6719.tar.bz2
openocd+libswd-4946925bea77a4aace6c310b2b724cf2095c6719.tar.xz
openocd+libswd-4946925bea77a4aace6c310b2b724cf2095c6719.zip
use ARRAY_SIZE macro
Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
Diffstat (limited to 'src/target/mips_ejtag.c')
-rw-r--r--src/target/mips_ejtag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c
index 6f06d9a3..68a39faf 100644
--- a/src/target/mips_ejtag.c
+++ b/src/target/mips_ejtag.c
@@ -143,7 +143,7 @@ int mips_ejtag_step_enable(struct mips_ejtag *ejtag_info)
MIPS32_NOP,
};
- mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, \
+ mips32_pracc_exec(ejtag_info, ARRAY_SIZE(code), code, \
0, NULL, 0, NULL, 1);
return ERROR_OK;
@@ -169,7 +169,7 @@ int mips_ejtag_step_disable(struct mips_ejtag *ejtag_info)
MIPS32_NOP,
};
- mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, \
+ mips32_pracc_exec(ejtag_info, ARRAY_SIZE(code), code, \
0, NULL, 0, NULL, 1);
return ERROR_OK;
@@ -234,7 +234,7 @@ int mips_ejtag_read_debug(struct mips_ejtag *ejtag_info, uint32_t* debug_reg)
MIPS32_NOP,
};
- mips32_pracc_exec(ejtag_info, sizeof(code)/sizeof(code[0]), code, \
+ mips32_pracc_exec(ejtag_info, ARRAY_SIZE(code), code, \
0, NULL, 1, debug_reg, 1);
return ERROR_OK;