rexecd: fix type change

Fix cast from pointer to integer of different size to ensure
proper type conversion and avoid compilation warnings.

Signed-off-by: hongfengchen <hongfengchen@xiaomi.com>
This commit is contained in:
hongfengchen 2025-06-10 15:00:26 +08:00 • committed by Xiang Xiao
parent 34e4d7eacd
commit c69df55cd0
3 changed files with 20 additions and 20 deletions

View file

@ -122,7 +122,7 @@ static void show_usage(FAR const char *progname)
{
printf("\nUsage: %s -m [max allocsize Default:8192] "
"-n [node length Default:1024] -t [sleep us Default:100]"
" -x [nthreads Default:1] -d [debuger mode]\n",
" -x [nthreads Default:1] -d [debugger mode]\n",
progname);
printf("\nWhere:\n");
printf(" -m [max-allocsize] max alloc size.\n");
@ -217,7 +217,7 @@ static void checknode(FAR struct memorystress_thread_context_s *context,
context->error.rwerror = rwerror;
error_result(context->error);
lib_dumpbuffer("debuger", node->buf, size);
lib_dumpbuffer("debugger", node->buf, size);
/* Trigger the ASSET once it occurs, retaining the error site */