mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
ramspeed: fix dest align typo, add not-aligned print
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
parent
e861ea8b53
commit
fa22f80ee3
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue