From: Zach W. <zw...@us...> - 2009-11-27 20:12:00
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 6ce3a299f395ef7f778661ae3f79d63659d133f7 (commit) via f31dfffdef16e640fa0bb881db1ac65ffcd42bf0 (commit) from 46ed068bacec3c40aa543e78e99b51e30aacf15b (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 6ce3a299f395ef7f778661ae3f79d63659d133f7 Author: Zachary T Welch <zw...@su...> Date: Fri Nov 27 11:02:54 2009 -0800 update minidummy interface driver command handling Changes the interface definition field reference from register_commands to commands, which allows the module to compile. diff --git a/src/jtag/minidummy/minidummy.c b/src/jtag/minidummy/minidummy.c index 1bee74e..986a8be 100644 --- a/src/jtag/minidummy/minidummy.c +++ b/src/jtag/minidummy/minidummy.c @@ -29,7 +29,7 @@ struct jtag_interface minidummy_interface = .name = "minidummy", .execute_queue = NULL, .speed = NULL, - .register_commands = NULL, + .commands = NULL, .init = NULL, .quit = NULL, .khz = NULL, commit f31dfffdef16e640fa0bb881db1ac65ffcd42bf0 Author: Zachary T Welch <zw...@su...> Date: Fri Nov 27 09:57:25 2009 -0800 fix 'nand info' command Move device argument parsing after check for number of arguments; otherwise, calling this command without any arguments would access argv[0] before checking whether it even existed. diff --git a/src/flash/nand.c b/src/flash/nand.c index 1e28ba2..895abe3 100644 --- a/src/flash/nand.c +++ b/src/flash/nand.c @@ -1121,11 +1121,6 @@ COMMAND_HANDLER(handle_nand_info_command) int first = -1; int last = -1; - struct nand_device *p; - int retval = CALL_COMMAND_HANDLER(nand_command_get_device, 0, &p); - if (ERROR_OK != retval) - return retval; - switch (CMD_ARGC) { default: return ERROR_COMMAND_SYNTAX_ERROR; @@ -1144,6 +1139,11 @@ COMMAND_HANDLER(handle_nand_info_command) break; } + struct nand_device *p; + int retval = CALL_COMMAND_HANDLER(nand_command_get_device, 0, &p); + if (ERROR_OK != retval) + return retval; + if (NULL == p->device) { command_print(CMD_CTX, "#%s: not probed", CMD_ARGV[0]); ----------------------------------------------------------------------- Summary of changes: src/flash/nand.c | 10 +++++----- src/jtag/minidummy/minidummy.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) hooks/post-receive -- Main OpenOCD repository |