This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new fa22f80ee ramspeed: fix dest align typo, add not-aligned print
fa22f80ee is described below
commit fa22f80ee3a0b6b232752e8d796129bd79082da8
Author: buxiasen <[email protected]>
AuthorDate: Wed Dec 11 21:23:16 2024 +0800
ramspeed: fix dest align typo, add not-aligned print
Signed-off-by: buxiasen <[email protected]>
---
benchmarks/ramspeed/ramspeed_main.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/benchmarks/ramspeed/ramspeed_main.c
b/benchmarks/ramspeed/ramspeed_main.c
index b11bdaf76..6eb4bfe67 100644
--- a/benchmarks/ramspeed/ramspeed_main.c
+++ b/benchmarks/ramspeed/ramspeed_main.c
@@ -152,16 +152,18 @@ static void parse_commandline(int argc, FAR char **argv,
OPTARG_TO_VALUE(info->src, const void *, 16);
if (((uintptr_t)info->src & ALIGN_MASK) != 0)
{
- printf(RAMSPEED_PREFIX "<read-adress> must align\n");
+ printf(RAMSPEED_PREFIX "<read-adress> must align %p\n",
+ info->src);
exit(EXIT_FAILURE);
}
break;
case 'w':
OPTARG_TO_VALUE(info->dest, void *, 16);
- if (((uintptr_t)info->src & ALIGN_MASK) != 0)
+ if (((uintptr_t)info->dest & ALIGN_MASK) != 0)
{
- printf(RAMSPEED_PREFIX "<write-adress> must align\n");
+ printf(RAMSPEED_PREFIX "<write-adress> must align %p\n",
+ info->dest);
exit(EXIT_FAILURE);
}
break;