This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push: new 4a226c32e hw/drivers/semihosting: Fix typo in semihost_rename 4a226c32e is described below commit 4a226c32efb3d87b21f8124e53424bb999e162b0 Author: Szymon Janc <szymon.j...@codecoup.pl> AuthorDate: Wed Apr 13 15:04:18 2022 +0200 hw/drivers/semihosting: Fix typo in semihost_rename Arguments were not set properly. --- hw/drivers/semihosting/src/mbed_semihost_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/drivers/semihosting/src/mbed_semihost_api.c b/hw/drivers/semihosting/src/mbed_semihost_api.c index cd1fa1ef3..031c35f34 100644 --- a/hw/drivers/semihosting/src/mbed_semihost_api.c +++ b/hw/drivers/semihosting/src/mbed_semihost_api.c @@ -105,8 +105,8 @@ int semihost_rename(const char *old_name, const char *new_name) uint32_t args[4]; args[0] = (uint32_t)old_name; args[1] = (uint32_t)strlen(old_name); - args[0] = (uint32_t)new_name; - args[1] = (uint32_t)strlen(new_name); + args[2] = (uint32_t)new_name; + args[3] = (uint32_t)strlen(new_name); return __semihost(SYS_RENAME, args); }