From: ntfreak Date: Sat, 24 May 2008 11:01:33 +0000 (+0000) Subject: - removed compiler warnings X-Git-Tag: v0.1.0~610 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20937dd33aa726d043a535a95661913a450b4a35;p=openocd - removed compiler warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@679 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/flash/ocl.c b/src/flash/ocl.c index 4f3b506c..825f455f 100644 --- a/src/flash/ocl.c +++ b/src/flash/ocl.c @@ -63,7 +63,6 @@ flash_driver_t ocl_flash = .auto_probe = ocl_auto_probe }; - typedef struct ocl_priv_s { arm_jtag_t *jtag_info; @@ -71,25 +70,21 @@ typedef struct ocl_priv_s int bufalign; } ocl_priv_t; - int ocl_register_commands(struct command_context_s *cmd_ctx) { return ERROR_OK; } - int ocl_erase_check(struct flash_bank_s *bank) { return ERROR_OK; } - int ocl_protect_check(struct flash_bank_s *bank) { return ERROR_OK; } - /* flash_bank ocl 0 0 0 0 */ int ocl_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct flash_bank_s *bank) { @@ -115,7 +110,6 @@ int ocl_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char ** return ERROR_OK; } - int ocl_erase(struct flash_bank_s *bank, int first, int last) { ocl_priv_t *ocl = bank->driver_priv; @@ -162,22 +156,20 @@ int ocl_erase(struct flash_bank_s *bank, int first, int last) if (dcc_buffer[1] != OCL_CMD_DONE) { if (dcc_buffer[0] == OCL_ERASE_ALL) - LOG_ERROR("loader response to OCL_ERASE_ALL 0x%08lX", dcc_buffer[1]); + LOG_ERROR("loader response to OCL_ERASE_ALL 0x%08X", dcc_buffer[1]); else - LOG_ERROR("loader response to OCL_ERASE_BLOCK 0x%08lX", dcc_buffer[1]); + LOG_ERROR("loader response to OCL_ERASE_BLOCK 0x%08X", dcc_buffer[1]); return ERROR_FLASH_OPERATION_FAILED; } return ERROR_OK; } - int ocl_protect(struct flash_bank_s *bank, int set, int first, int last) { return ERROR_OK; } - int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) { ocl_priv_t *ocl = bank->driver_priv; @@ -272,7 +264,7 @@ int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) if (dcc_buffer[0] != OCL_CMD_DONE) { - LOG_ERROR("loader response to OCL_FLASH_BLOCK 0x%08lX", dcc_buffer[0]); + LOG_ERROR("loader response to OCL_FLASH_BLOCK 0x%08X", dcc_buffer[0]); free(dcc_buffer); return ERROR_FLASH_OPERATION_FAILED; } @@ -285,7 +277,6 @@ int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) return ERROR_OK; } - int ocl_probe(struct flash_bank_s *bank) { ocl_priv_t *ocl = bank->driver_priv; @@ -315,7 +306,7 @@ int ocl_probe(struct flash_bank_s *bank) if (dcc_buffer[0] != OCL_CMD_DONE) { - LOG_ERROR("loader response to OCL_PROBE 0x%08lX", dcc_buffer[0]); + LOG_ERROR("loader response to OCL_PROBE 0x%08X", dcc_buffer[0]); return ERROR_FLASH_OPERATION_FAILED; } @@ -384,13 +375,11 @@ int ocl_probe(struct flash_bank_s *bank) return ERROR_OK; } - int ocl_info(struct flash_bank_s *bank, char *buf, int buf_size) { return ERROR_OK; } - int ocl_auto_probe(struct flash_bank_s *bank) { ocl_priv_t *ocl = bank->driver_priv;