Skip to content

Commit bdc5aa9

Browse files
jasonbuxiaoxiang781216
authored andcommitted
ramspeed: fix dest align typo, add not-aligned print
Signed-off-by: buxiasen <[email protected]>
1 parent dc1ffe1 commit bdc5aa9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

benchmarks/ramspeed/ramspeed_main.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,18 @@ static void parse_commandline(int argc, FAR char **argv,
152152
OPTARG_TO_VALUE(info->src, const void *, 16);
153153
if (((uintptr_t)info->src & ALIGN_MASK) != 0)
154154
{
155-
printf(RAMSPEED_PREFIX "<read-adress> must align\n");
155+
printf(RAMSPEED_PREFIX "<read-adress> must align %p\n",
156+
info->src);
156157
exit(EXIT_FAILURE);
157158
}
158159

159160
break;
160161
case 'w':
161162
OPTARG_TO_VALUE(info->dest, void *, 16);
162-
if (((uintptr_t)info->src & ALIGN_MASK) != 0)
163+
if (((uintptr_t)info->dest & ALIGN_MASK) != 0)
163164
{
164-
printf(RAMSPEED_PREFIX "<write-adress> must align\n");
165+
printf(RAMSPEED_PREFIX "<write-adress> must align %p\n",
166+
info->dest);
165167
exit(EXIT_FAILURE);
166168
}
167169
break;

0 commit comments

Comments
 (0)