system/fastboot: add const for memdump_print_t

Add qualifier "const" to the declaration of `memdump_print_t`,
the value of the 2nd argument will not be changed.

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3
2025-06-15 13:21:18 +08:00
committed by Donny(董九柱)
parent 5e50e2c1f9
commit 38bd6accea

View File

@@ -157,7 +157,7 @@ struct fastboot_cmd_s
FAR const char *arg);
};
typedef void (*memdump_print_t)(FAR void *, FAR char *);
typedef void (*memdump_print_t)(FAR void *, FAR const char *);
/****************************************************************************
* Private Function Prototypes
@@ -681,12 +681,13 @@ static void fastboot_memdump_region(memdump_print_t memprint, FAR void *priv)
#endif
}
static void fastboot_memdump_syslog(FAR void *priv, FAR char *response)
static void fastboot_memdump_syslog(FAR void *priv, FAR const char *response)
{
fb_err(" %s", response);
}
static void fastboot_memdump_response(FAR void *priv, FAR char *response)
static void fastboot_memdump_response(FAR void *priv,
FAR const char *response)
{
fastboot_ack((FAR struct fastboot_ctx_s *)priv, "TEXT", response);
}